m
This commit is contained in:
@@ -0,0 +1,290 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Threading.Tasks
|
||||
{
|
||||
/// <summary>Represents an asynchronous operation that can return a value.</summary>
|
||||
/// <typeparam name="TResult">The type of the result produced by this <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
|
||||
// Token: 0x02000375 RID: 885
|
||||
[Token(Token = "0x2000375")]
|
||||
[DebuggerTypeProxy(typeof(SystemThreadingTasks_FutureDebugView<>))]
|
||||
[DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}, Result = {DebuggerDisplayResultDescription}")]
|
||||
public class Task<TResult> : Task
|
||||
{
|
||||
// Token: 0x060020AE RID: 8366 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020AE")]
|
||||
[Address(RVA = "0x33CD4D0", Offset = "0x33CC4D0", VA = "0x1833CD4D0")]
|
||||
internal Task()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020AF RID: 8367 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020AF")]
|
||||
[Address(RVA = "0x33D14A0", Offset = "0x33D04A0", VA = "0x1833D14A0")]
|
||||
internal Task(object state, TaskCreationOptions options)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B0 RID: 8368 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B0")]
|
||||
[Address(RVA = "0x33CEE40", Offset = "0x33CDE40", VA = "0x1833CEE40")]
|
||||
internal Task(TResult result)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B1 RID: 8369 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B1")]
|
||||
[Address(RVA = "0x33CE5B0", Offset = "0x33CD5B0", VA = "0x1833CE5B0")]
|
||||
internal Task(bool canceled, TResult result, TaskCreationOptions creationOptions, CancellationToken ct)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new <see cref="T:System.Threading.Tasks.Task`1" /> with the specified action, state, and options.</summary>
|
||||
/// <param name="function">The delegate that represents the code to execute in the task. When the function has completed, the task's <see cref="P:System.Threading.Tasks.Task`1.Result" /> property will be set to return the result value of the function.</param>
|
||||
/// <param name="state">An object representing data to be used by the function.</param>
|
||||
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> to be assigned to the new task.</param>
|
||||
/// <param name="creationOptions">The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior.</param>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> that created <paramref name="cancellationToken" /> has already been disposed.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="creationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="function" /> argument is null.</exception>
|
||||
// Token: 0x060020B2 RID: 8370 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B2")]
|
||||
[Address(RVA = "0x33CE390", Offset = "0x33CD390", VA = "0x1833CE390")]
|
||||
public Task(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B3 RID: 8371 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B3")]
|
||||
[Address(RVA = "0x33CE7E0", Offset = "0x33CD7E0", VA = "0x1833CE7E0")]
|
||||
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B4 RID: 8372 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B4")]
|
||||
[Address(RVA = "0x33CD860", Offset = "0x33CC860", VA = "0x1833CD860")]
|
||||
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B5 RID: 8373 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B5")]
|
||||
[Address(RVA = "0x33CFB30", Offset = "0x33CEB30", VA = "0x1833CFB30")]
|
||||
internal Task(Func<object, TResult> valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B6 RID: 8374 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020B6")]
|
||||
[Address(RVA = "0x33CFA10", Offset = "0x33CEA10", VA = "0x1833CFA10")]
|
||||
internal Task(Delegate valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060020B7 RID: 8375 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020B7")]
|
||||
[Address(RVA = "0x33C96F0", Offset = "0x33C86F0", VA = "0x1833C96F0")]
|
||||
internal static Task<TResult> StartNew(Task parent, Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060020B8 RID: 8376 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020B8")]
|
||||
[Address(RVA = "0x33CBAF0", Offset = "0x33CAAF0", VA = "0x1833CBAF0")]
|
||||
internal static Task<TResult> StartNew(Task parent, Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060020B9 RID: 8377 RVA: 0x00015BE8 File Offset: 0x00013DE8
|
||||
[Token(Token = "0x60020B9")]
|
||||
[Address(RVA = "0x3379320", Offset = "0x3378320", VA = "0x183379320")]
|
||||
internal bool TrySetResult(TResult result)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060020BA RID: 8378 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020BA")]
|
||||
[Address(RVA = "0x3377630", Offset = "0x3376630", VA = "0x183377630")]
|
||||
internal void DangerousSetResult(TResult result)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the result value of this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
|
||||
/// <returns>The result value of this <see cref="T:System.Threading.Tasks.Task`1" />, which is of the same type as the task's type parameter.</returns>
|
||||
/// <exception cref="T:System.AggregateException">The task was canceled. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains a <see cref="T:System.Threading.Tasks.TaskCanceledException" /> object.
|
||||
/// -or-
|
||||
/// An exception was thrown during the execution of the task. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains information about the exception or exceptions.</exception>
|
||||
// Token: 0x1700048D RID: 1165
|
||||
// (get) Token: 0x060020BB RID: 8379 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700048D")]
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
||||
public TResult Result
|
||||
{
|
||||
[Token(Token = "0x60020BB")]
|
||||
[Address(RVA = "0x337BDA0", Offset = "0x337ADA0", VA = "0x18337BDA0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700048E RID: 1166
|
||||
// (get) Token: 0x060020BC RID: 8380 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700048E")]
|
||||
internal TResult ResultOnSuccess
|
||||
{
|
||||
[Token(Token = "0x60020BC")]
|
||||
[Address(RVA = "0x610D70", Offset = "0x60FD70", VA = "0x180610D70")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060020BD RID: 8381 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020BD")]
|
||||
[Address(RVA = "0x3377760", Offset = "0x3376760", VA = "0x183377760")]
|
||||
internal TResult GetResultCore(bool waitCompletionNotification)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060020BE RID: 8382 RVA: 0x00015C00 File Offset: 0x00013E00
|
||||
[Token(Token = "0x60020BE")]
|
||||
[Address(RVA = "0x33792A0", Offset = "0x33782A0", VA = "0x1833792A0")]
|
||||
internal bool TrySetException(object exceptionObject)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060020BF RID: 8383 RVA: 0x00015C18 File Offset: 0x00013E18
|
||||
[Token(Token = "0x60020BF")]
|
||||
[Address(RVA = "0x3379270", Offset = "0x3378270", VA = "0x183379270")]
|
||||
internal bool TrySetCanceled(CancellationToken tokenToRecord)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060020C0 RID: 8384 RVA: 0x00015C30 File Offset: 0x00013E30
|
||||
[Token(Token = "0x60020C0")]
|
||||
[Address(RVA = "0x33791F0", Offset = "0x33781F0", VA = "0x1833791F0")]
|
||||
internal bool TrySetCanceled(CancellationToken tokenToRecord, object cancellationException)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
/// <summary>Provides access to factory methods for creating and configuring <see cref="T:System.Threading.Tasks.Task`1" /> instances.</summary>
|
||||
/// <returns>A factory object that can create a variety of <see cref="T:System.Threading.Tasks.Task`1" /> objects.</returns>
|
||||
// Token: 0x1700048F RID: 1167
|
||||
// (get) Token: 0x060020C1 RID: 8385 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700048F")]
|
||||
public new static TaskFactory<TResult> Factory
|
||||
{
|
||||
[Token(Token = "0x60020C1")]
|
||||
[Address(RVA = "0x337BBA0", Offset = "0x337ABA0", VA = "0x18337BBA0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060020C2 RID: 8386 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60020C2")]
|
||||
[Address(RVA = "0x3377A90", Offset = "0x3376A90", VA = "0x183377A90", Slot = "21")]
|
||||
internal override void InnerInvoke()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
|
||||
/// <returns>An awaiter instance.</returns>
|
||||
// Token: 0x060020C3 RID: 8387 RVA: 0x00015C48 File Offset: 0x00013E48
|
||||
[Token(Token = "0x60020C3")]
|
||||
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
|
||||
public new TaskAwaiter<TResult> GetAwaiter()
|
||||
{
|
||||
return default(TaskAwaiter<TResult>);
|
||||
}
|
||||
|
||||
/// <summary>Configures an awaiter used to await this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
|
||||
/// <param name="continueOnCapturedContext">true to attempt to marshal the continuation back to the original context captured; otherwise, false.</param>
|
||||
/// <returns>An object used to await this task.</returns>
|
||||
// Token: 0x060020C4 RID: 8388 RVA: 0x00015C60 File Offset: 0x00013E60
|
||||
[Token(Token = "0x60020C4")]
|
||||
[Address(RVA = "0x3376820", Offset = "0x3375820", VA = "0x183376820")]
|
||||
public new ConfiguredTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext)
|
||||
{
|
||||
return default(ConfiguredTaskAwaitable<TResult>);
|
||||
}
|
||||
|
||||
/// <summary>Creates a continuation that executes asynchronously when the target task completes.</summary>
|
||||
/// <param name="continuationAction">An action to run when the antecedent <see cref="T:System.Threading.Tasks.Task`1" /> completes. When run, the delegate will be passed the completed task as an argument.</param>
|
||||
/// <returns>A new continuation task.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task`1" /> has been disposed.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationAction" /> argument is <see langword="null" />.</exception>
|
||||
// Token: 0x060020C5 RID: 8389 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020C5")]
|
||||
[Address(RVA = "0x33C82E0", Offset = "0x33C72E0", VA = "0x1833C82E0")]
|
||||
public Task ContinueWith(Action<Task<TResult>> continuationAction)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060020C6 RID: 8390 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020C6")]
|
||||
[Address(RVA = "0x33C6EE0", Offset = "0x33C5EE0", VA = "0x1833C6EE0")]
|
||||
internal Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Creates a continuation that executes according the condition specified in <paramref name="continuationOptions" />.</summary>
|
||||
/// <param name="continuationFunction">A function to run according the condition specified in <paramref name="continuationOptions" />.
|
||||
/// When run, the delegate will be passed as an argument this completed task.</param>
|
||||
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new task.</param>
|
||||
/// <param name="continuationOptions">Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param>
|
||||
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param>
|
||||
/// <typeparam name="TNewResult">The type of the result produced by the continuation.</typeparam>
|
||||
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task`1" /> has been disposed.
|
||||
/// -or-
|
||||
/// The <see cref="T:System.Threading.CancellationTokenSource" /> that created <paramref name="cancellationToken" /> has already been disposed.</exception>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationFunction" /> argument is null.
|
||||
/// -or-
|
||||
/// The <paramref name="scheduler" /> argument is null.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="continuationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</exception>
|
||||
// Token: 0x060020C7 RID: 8391 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020C7")]
|
||||
[Address(RVA = "0x25FEFA0", Offset = "0x25FDFA0", VA = "0x1825FEFA0")]
|
||||
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060020C8 RID: 8392 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60020C8")]
|
||||
[Address(RVA = "0x25FF1D0", Offset = "0x25FE1D0", VA = "0x1825FF1D0")]
|
||||
internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0400123D RID: 4669
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400123D")]
|
||||
internal TResult m_result;
|
||||
|
||||
// Token: 0x0400123E RID: 4670
|
||||
[Token(Token = "0x400123E")]
|
||||
private static readonly TaskFactory<TResult> s_Factory;
|
||||
|
||||
// Token: 0x0400123F RID: 4671
|
||||
[Token(Token = "0x400123F")]
|
||||
internal static readonly Func<Task<Task>, Task<TResult>> TaskWhenAnyCast;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user