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: 0x02000378 RID: 888
[Token(Token = "0x2000378")]
public class TaskFactory
{
/// Initializes a instance with the default configuration.
// Token: 0x060020CD RID: 8397 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CD")]
[Address(RVA = "0x2F090A0", Offset = "0x2F080A0", VA = "0x182F090A0")]
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: 0x060020CE RID: 8398 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CE")]
[Address(RVA = "0x2F090E0", Offset = "0x2F080E0", VA = "0x182F090E0")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x060020CF RID: 8399 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CF")]
[Address(RVA = "0x2F04C70", Offset = "0x2F03C70", VA = "0x182F04C70")]
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: 0x060020D0 RID: 8400 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D0")]
[Address(RVA = "0x2F09050", Offset = "0x2F08050", VA = "0x182F09050")]
public Task FromAsync(Func beginMethod, Func endMethod, object state)
{
return null;
}
// Token: 0x060020D1 RID: 8401 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D1")]
[Address(RVA = "0x2F07C10", Offset = "0x2F06C10", VA = "0x182F07C10")]
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: 0x060020D2 RID: 8402 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D2")]
[Address(RVA = "0x25FE6F0", Offset = "0x25FD6F0", VA = "0x1825FE6F0")]
public Task FromAsync(Func beginMethod, Func endMethod, TArg1 arg1, object state)
{
return null;
}
// Token: 0x060020D3 RID: 8403 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D3")]
[Address(RVA = "0x25FDC00", Offset = "0x25FCC00", VA = "0x1825FDC00")]
internal static Task FromAsyncImpl(Func beginMethod, Func endFunction, Action endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x060020D4 RID: 8404 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D4")]
[Address(RVA = "0x25FD610", Offset = "0x25FC610", VA = "0x1825FD610")]
internal static Task FromAsyncImpl(Func beginMethod, Func endFunction, Action endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x060020D5 RID: 8405 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D5")]
[Address(RVA = "0x25FE1E0", Offset = "0x25FD1E0", VA = "0x1825FE1E0")]
internal static Task FromAsyncTrim(TInstance thisRef, TArgs args, Func beginMethod, Func endMethod) where TInstance : class
{
return null;
}
// Token: 0x04001241 RID: 4673
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001241")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x04001242 RID: 4674
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001242")]
private TaskScheduler m_defaultScheduler;
// Token: 0x04001243 RID: 4675
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001243")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001244 RID: 4676
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001244")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x02000379 RID: 889
[Token(Token = "0x2000379")]
private sealed class FromAsyncTrimPromise : Task where TInstance : class
{
// Token: 0x060020D6 RID: 8406 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D6")]
[Address(RVA = "0x2EFE750", Offset = "0x2EFD750", VA = "0x182EFE750")]
internal FromAsyncTrimPromise(TInstance thisRef, Func endMethod)
{
}
// Token: 0x060020D7 RID: 8407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D7")]
[Address(RVA = "0x2EFDE90", Offset = "0x2EFCE90", VA = "0x182EFDE90")]
internal static void CompleteFromAsyncResult(IAsyncResult asyncResult)
{
}
// Token: 0x060020D8 RID: 8408 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D8")]
[Address(RVA = "0x2EFE230", Offset = "0x2EFD230", VA = "0x182EFE230")]
internal void Complete(TInstance thisRef, Func endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
{
}
// Token: 0x04001245 RID: 4677
[Token(Token = "0x4001245")]
internal static readonly AsyncCallback s_completeFromAsyncResult;
// Token: 0x04001246 RID: 4678
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001246")]
private TInstance m_thisRef;
// Token: 0x04001247 RID: 4679
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001247")]
private Func m_endMethod;
}
}
}