using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// Provides an object that waits for the completion of an asynchronous task.
// Token: 0x02000563 RID: 1379
[Token(Token = "0x2000563")]
public struct TaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002C4B RID: 11339 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4B")]
[Address(RVA = "0x593200", Offset = "0x592200", VA = "0x180593200")]
internal TaskAwaiter(Task task)
{
}
/// Gets a value that indicates whether the asynchronous task has completed.
///
/// if the task has completed; otherwise, .
/// The object was not properly initialized.
// Token: 0x170006B8 RID: 1720
// (get) Token: 0x06002C4C RID: 11340 RVA: 0x00018BE8 File Offset: 0x00016DE8
[Token(Token = "0x170006B8")]
public bool IsCompleted
{
[Token(Token = "0x6002C4C")]
[Address(RVA = "0x2CEC370", Offset = "0x2CEB370", VA = "0x182CEC370")]
get
{
return default(bool);
}
}
/// Sets the action to perform when the object stops waiting for the asynchronous task to complete.
/// The action to perform when the wait operation completes.
///
/// is .
/// The object was not properly initialized.
// Token: 0x06002C4D RID: 11341 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4D")]
[Address(RVA = "0x2CFD110", Offset = "0x2CFC110", VA = "0x182CFD110", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
/// Schedules the continuation action for the asynchronous task that is associated with this awaiter.
/// The action to invoke when the await operation completes.
///
/// is .
/// The awaiter was not properly initialized.
// Token: 0x06002C4E RID: 11342 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4E")]
[Address(RVA = "0x2CFD270", Offset = "0x2CFC270", VA = "0x182CFD270", Slot = "4")]
public void UnsafeOnCompleted(Action continuation)
{
}
/// Ends the wait for the completion of the asynchronous task.
/// The object was not properly initialized.
/// The task was canceled.
/// The task completed in a state.
// Token: 0x06002C4F RID: 11343 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4F")]
[Address(RVA = "0x2CEC300", Offset = "0x2CEB300", VA = "0x182CEC300")]
public void GetResult()
{
}
// Token: 0x06002C50 RID: 11344 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C50")]
[Address(RVA = "0x2CFD290", Offset = "0x2CFC290", VA = "0x182CFD290")]
internal static void ValidateEnd(Task task)
{
}
// Token: 0x06002C51 RID: 11345 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C51")]
[Address(RVA = "0x2CFCEE0", Offset = "0x2CFBEE0", VA = "0x182CFCEE0")]
private static void HandleNonSuccessAndDebuggerNotification(Task task)
{
}
// Token: 0x06002C52 RID: 11346 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C52")]
[Address(RVA = "0x2CFD140", Offset = "0x2CFC140", VA = "0x182CFD140")]
private static void ThrowForNonSuccess(Task task)
{
}
// Token: 0x06002C53 RID: 11347 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C53")]
[Address(RVA = "0x2CFD040", Offset = "0x2CFC040", VA = "0x182CFD040")]
internal static void OnCompletedInternal(Task task, Action continuation, bool continueOnCapturedContext, bool flowExecutionContext)
{
}
// Token: 0x04001946 RID: 6470
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001946")]
private readonly Task m_task;
}
}