Files
2026-04-10 22:50:51 +02:00

291 lines
15 KiB
C#

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: 0x02000359 RID: 857
[Token(Token = "0x2000359")]
[DebuggerTypeProxy(typeof(SystemThreadingTasks_FutureDebugView<>))]
[DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}, Result = {DebuggerDisplayResultDescription}")]
public class Task<TResult> : Task
{
// Token: 0x06001EA2 RID: 7842 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA2")]
[Address(RVA = "0x2FEC0B0", Offset = "0x2FEAEB0", VA = "0x182FEC0B0")]
internal Task()
{
}
// Token: 0x06001EA3 RID: 7843 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA3")]
[Address(RVA = "0x2FEF820", Offset = "0x2FEE620", VA = "0x182FEF820")]
internal Task(object state, TaskCreationOptions options)
{
}
// Token: 0x06001EA4 RID: 7844 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA4")]
[Address(RVA = "0x2FED830", Offset = "0x2FEC630", VA = "0x182FED830")]
internal Task(TResult result)
{
}
// Token: 0x06001EA5 RID: 7845 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA5")]
[Address(RVA = "0x2FED070", Offset = "0x2FEBE70", VA = "0x182FED070")]
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: 0x06001EA6 RID: 7846 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA6")]
[Address(RVA = "0x2FECE50", Offset = "0x2FEBC50", VA = "0x182FECE50")]
public Task(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
{
}
// Token: 0x06001EA7 RID: 7847 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA7")]
[Address(RVA = "0x2FED2A0", Offset = "0x2FEC0A0", VA = "0x182FED2A0")]
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
}
// Token: 0x06001EA8 RID: 7848 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA8")]
[Address(RVA = "0x2FEC320", Offset = "0x2FEB120", VA = "0x182FEC320")]
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x06001EA9 RID: 7849 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EA9")]
[Address(RVA = "0x2FEE380", Offset = "0x2FED180", VA = "0x182FEE380")]
internal Task(Func<object, TResult> valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
}
// Token: 0x06001EAA RID: 7850 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EAA")]
[Address(RVA = "0x2FEE260", Offset = "0x2FED060", VA = "0x182FEE260")]
internal Task(Delegate valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x06001EAB RID: 7851 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EAB")]
[Address(RVA = "0x2FE8120", Offset = "0x2FE6F20", VA = "0x182FE8120")]
internal static Task<TResult> StartNew(Task parent, Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x06001EAC RID: 7852 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EAC")]
[Address(RVA = "0x2FEA760", Offset = "0x2FE9560", VA = "0x182FEA760")]
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: 0x06001EAD RID: 7853 RVA: 0x00013818 File Offset: 0x00011A18
[Token(Token = "0x6001EAD")]
[Address(RVA = "0x2FEB300", Offset = "0x2FEA100", VA = "0x182FEB300")]
internal bool TrySetResult(TResult result)
{
return default(bool);
}
// Token: 0x06001EAE RID: 7854 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EAE")]
[Address(RVA = "0x2FE7010", Offset = "0x2FE5E10", VA = "0x182FE7010")]
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: 0x17000416 RID: 1046
// (get) Token: 0x06001EAF RID: 7855 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000416")]
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public TResult Result
{
[Token(Token = "0x6001EAF")]
[Address(RVA = "0x2FF1130", Offset = "0x2FEFF30", VA = "0x182FF1130")]
get
{
return null;
}
}
// Token: 0x17000417 RID: 1047
// (get) Token: 0x06001EB0 RID: 7856 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000417")]
internal TResult ResultOnSuccess
{
[Token(Token = "0x6001EB0")]
[Address(RVA = "0xCCBE70", Offset = "0xCCAC70", VA = "0x180CCBE70")]
get
{
return null;
}
}
// Token: 0x06001EB1 RID: 7857 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EB1")]
[Address(RVA = "0x2FE7270", Offset = "0x2FE6070", VA = "0x182FE7270")]
internal TResult GetResultCore(bool waitCompletionNotification)
{
return null;
}
// Token: 0x06001EB2 RID: 7858 RVA: 0x00013830 File Offset: 0x00011A30
[Token(Token = "0x6001EB2")]
[Address(RVA = "0x2FEB110", Offset = "0x2FE9F10", VA = "0x182FEB110")]
internal bool TrySetException(object exceptionObject)
{
return default(bool);
}
// Token: 0x06001EB3 RID: 7859 RVA: 0x00013848 File Offset: 0x00011A48
[Token(Token = "0x6001EB3")]
[Address(RVA = "0x2FEB060", Offset = "0x2FE9E60", VA = "0x182FEB060")]
internal bool TrySetCanceled(CancellationToken tokenToRecord)
{
return default(bool);
}
// Token: 0x06001EB4 RID: 7860 RVA: 0x00013860 File Offset: 0x00011A60
[Token(Token = "0x6001EB4")]
[Address(RVA = "0x2FEB090", Offset = "0x2FE9E90", VA = "0x182FEB090")]
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: 0x17000418 RID: 1048
// (get) Token: 0x06001EB5 RID: 7861 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000418")]
public new static TaskFactory<TResult> Factory
{
[Token(Token = "0x6001EB5")]
[Address(RVA = "0x2FF0A80", Offset = "0x2FEF880", VA = "0x182FF0A80")]
get
{
return null;
}
}
// Token: 0x06001EB6 RID: 7862 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EB6")]
[Address(RVA = "0x2FE7840", Offset = "0x2FE6640", VA = "0x182FE7840", 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: 0x06001EB7 RID: 7863 RVA: 0x00013878 File Offset: 0x00011A78
[Token(Token = "0x6001EB7")]
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0")]
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: 0x06001EB8 RID: 7864 RVA: 0x00013890 File Offset: 0x00011A90
[Token(Token = "0x6001EB8")]
[Address(RVA = "0x2FE5010", Offset = "0x2FE3E10", VA = "0x182FE5010")]
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: 0x06001EB9 RID: 7865 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EB9")]
[Address(RVA = "0x2FE67D0", Offset = "0x2FE55D0", VA = "0x182FE67D0")]
public Task ContinueWith(Action<Task<TResult>> continuationAction)
{
return null;
}
// Token: 0x06001EBA RID: 7866 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EBA")]
[Address(RVA = "0x2FE5680", Offset = "0x2FE4480", VA = "0x182FE5680")]
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: 0x06001EBB RID: 7867 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EBB")]
[Address(RVA = "0x1B5ECE0", Offset = "0x1B5DAE0", VA = "0x181B5ECE0")]
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
return null;
}
// Token: 0x06001EBC RID: 7868 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EBC")]
[Address(RVA = "0x1B5EB00", Offset = "0x1B5D900", VA = "0x181B5EB00")]
internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x0400117A RID: 4474
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400117A")]
internal TResult m_result;
// Token: 0x0400117B RID: 4475
[Token(Token = "0x400117B")]
private static readonly TaskFactory<TResult> s_Factory;
// Token: 0x0400117C RID: 4476
[Token(Token = "0x400117C")]
internal static readonly Func<Task<Task>, Task<TResult>> TaskWhenAnyCast;
}
}