using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// Represents a builder for asynchronous methods that return a task.
// Token: 0x02000534 RID: 1332
[Token(Token = "0x2000534")]
public struct AsyncTaskMethodBuilder
{
/// Creates an instance of the class.
/// A new instance of the builder.
// Token: 0x06002A03 RID: 10755 RVA: 0x000167E8 File Offset: 0x000149E8
[Token(Token = "0x6002A03")]
[Address(RVA = "0x147A860", Offset = "0x1479660", VA = "0x18147A860")]
public static AsyncTaskMethodBuilder Create()
{
return default(AsyncTaskMethodBuilder);
}
/// Begins running the builder with the associated state machine.
/// The state machine instance, passed by reference.
/// The type of the state machine.
///
/// is .
// Token: 0x06002A04 RID: 10756 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A04")]
[Address(RVA = "0x19ED110", Offset = "0x19EBF10", VA = "0x1819ED110")]
[DebuggerStepThrough]
public void Start(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
{
}
/// Associates the builder with the specified state machine.
/// The state machine instance to associate with the builder.
///
/// is .
/// The state machine was previously set.
// Token: 0x06002A05 RID: 10757 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A05")]
[Address(RVA = "0x294B9E0", Offset = "0x294A7E0", VA = "0x18294B9E0")]
public void SetStateMachine(IAsyncStateMachine stateMachine)
{
}
/// Schedules the state machine to proceed to the next action when the specified awaiter completes.
/// The awaiter.
/// The state machine.
/// The type of the awaiter.
/// The type of the state machine.
// Token: 0x06002A06 RID: 10758 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A06")]
[Address(RVA = "0x19EC900", Offset = "0x19EB700", VA = "0x1819EC900")]
public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
{
}
/// Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.
/// The awaiter.
/// The state machine.
/// The type of the awaiter.
/// The type of the state machine.
// Token: 0x06002A07 RID: 10759 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A07")]
[Address(RVA = "0x19ECA20", Offset = "0x19EB820", VA = "0x1819ECA20")]
public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
{
}
/// Gets the task for this builder.
/// The task for this builder.
/// The builder is not initialized.
// Token: 0x1700063B RID: 1595
// (get) Token: 0x06002A08 RID: 10760 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700063B")]
public Task Task
{
[Token(Token = "0x6002A08")]
[Address(RVA = "0x294BAA0", Offset = "0x294A8A0", VA = "0x18294BAA0")]
get
{
return null;
}
}
/// Marks the task as successfully completed.
/// The task has already completed.
/// -or-
/// The builder is not initialized.
// Token: 0x06002A09 RID: 10761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A09")]
[Address(RVA = "0x294B970", Offset = "0x294A770", VA = "0x18294B970")]
public void SetResult()
{
}
/// Marks the task as failed and binds the specified exception to the task.
/// The exception to bind to the task.
///
/// is .
/// The task has already completed.
/// -or-
/// The builder is not initialized.
// Token: 0x06002A0A RID: 10762 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0A")]
[Address(RVA = "0x294B920", Offset = "0x294A720", VA = "0x18294B920")]
public void SetException(Exception exception)
{
}
// Token: 0x0400186B RID: 6251
[Token(Token = "0x400186B")]
private static readonly Task s_cachedCompleted;
// Token: 0x0400186C RID: 6252
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400186C")]
private AsyncTaskMethodBuilder m_builder;
}
}