using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// Provides support for creating and scheduling objects.
/// The return value of the objects that the methods of this class create.
// Token: 0x0200035C RID: 860
[Token(Token = "0x200035C")]
public class TaskFactory
{
/// Initializes a instance with the default configuration.
// Token: 0x06001EC1 RID: 7873 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC1")]
[Address(RVA = "0x28F03F0", Offset = "0x28EF1F0", VA = "0x1828F03F0")]
public TaskFactory()
{
}
/// Initializes a instance with the specified configuration.
/// The default cancellation token that will be assigned to tasks created by this unless another cancellation token is explicitly specified when calling the factory methods.
/// The default options to use when creating tasks with this .
/// The default options to use when creating continuation tasks with this .
/// The default scheduler to use to schedule any tasks created with this . A null value indicates that should be used.
///
/// or specifies an invalid value.
// Token: 0x06001EC2 RID: 7874 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC2")]
[Address(RVA = "0x28F0430", Offset = "0x28EF230", VA = "0x1828F0430")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x06001EC3 RID: 7875 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001EC3")]
[Address(RVA = "0x28ED820", Offset = "0x28EC620", VA = "0x1828ED820")]
private static void FromAsyncCoreLogic(IAsyncResult iar, Func endFunction, Action endAction, Task promise, bool requiresSynchronization)
{
}
/// Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
/// The delegate that begins the asynchronous operation.
/// The delegate that ends the asynchronous operation.
/// An object containing data to be used by the delegate.
/// The created task that represents the asynchronous operation.
/// The argument is .
/// -or-
/// The argument is .
// Token: 0x06001EC4 RID: 7876 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC4")]
[Address(RVA = "0x28F03A0", Offset = "0x28EF1A0", VA = "0x1828F03A0")]
public Task FromAsync(Func beginMethod, Func endMethod, object state)
{
return null;
}
// Token: 0x06001EC5 RID: 7877 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC5")]
[Address(RVA = "0x28EE820", Offset = "0x28ED620", VA = "0x1828EE820")]
internal static Task FromAsyncImpl(Func beginMethod, Func endFunction, Action endAction, object state, TaskCreationOptions creationOptions)
{
return null;
}
/// Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.
/// The delegate that begins the asynchronous operation.
/// The delegate that ends the asynchronous operation.
/// The first argument passed to the delegate.
/// An object containing data to be used by the delegate.
/// The type of the first argument passed to the delegate.
/// The created task that represents the asynchronous operation.
/// The argument is .
/// -or-
/// The argument is .
// Token: 0x06001EC6 RID: 7878 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC6")]
[Address(RVA = "0x1B5E250", Offset = "0x1B5D050", VA = "0x181B5E250")]
public Task FromAsync(Func beginMethod, Func endMethod, TArg1 arg1, object state)
{
return null;
}
// Token: 0x06001EC7 RID: 7879 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC7")]
[Address(RVA = "0x1B5D760", Offset = "0x1B5C560", VA = "0x181B5D760")]
internal static Task FromAsyncImpl(Func beginMethod, Func endFunction, Action endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x06001EC8 RID: 7880 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC8")]
[Address(RVA = "0x1B5D170", Offset = "0x1B5BF70", VA = "0x181B5D170")]
internal static Task FromAsyncImpl(Func beginMethod, Func endFunction, Action endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x06001EC9 RID: 7881 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001EC9")]
[Address(RVA = "0x1B5DD40", Offset = "0x1B5CB40", VA = "0x181B5DD40")]
internal static Task FromAsyncTrim(TInstance thisRef, TArgs args, Func beginMethod, Func endMethod) where TInstance : class
{
return null;
}
// Token: 0x0400117E RID: 4478
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400117E")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x0400117F RID: 4479
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400117F")]
private TaskScheduler m_defaultScheduler;
// Token: 0x04001180 RID: 4480
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001180")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001181 RID: 4481
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001181")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x0200035D RID: 861
[Token(Token = "0x200035D")]
private sealed class FromAsyncTrimPromise : Task where TInstance : class
{
// Token: 0x06001ECA RID: 7882 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECA")]
[Address(RVA = "0x28E9F90", Offset = "0x28E8D90", VA = "0x1828E9F90")]
internal FromAsyncTrimPromise(TInstance thisRef, Func endMethod)
{
}
// Token: 0x06001ECB RID: 7883 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECB")]
[Address(RVA = "0x28E96D0", Offset = "0x28E84D0", VA = "0x1828E96D0")]
internal static void CompleteFromAsyncResult(IAsyncResult asyncResult)
{
}
// Token: 0x06001ECC RID: 7884 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001ECC")]
[Address(RVA = "0x28E9A70", Offset = "0x28E8870", VA = "0x1828E9A70")]
internal void Complete(TInstance thisRef, Func endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
{
}
// Token: 0x04001182 RID: 4482
[Token(Token = "0x4001182")]
internal static readonly AsyncCallback s_completeFromAsyncResult;
// Token: 0x04001183 RID: 4483
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001183")]
private TInstance m_thisRef;
// Token: 0x04001184 RID: 4484
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001184")]
private Func m_endMethod;
}
}
}