using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result.
/// The result for the task.
// Token: 0x02000564 RID: 1380
[Token(Token = "0x2000564")]
public struct TaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002C54 RID: 11348 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C54")]
[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: 0x170006B9 RID: 1721
// (get) Token: 0x06002C55 RID: 11349 RVA: 0x00018C00 File Offset: 0x00016E00
[Token(Token = "0x170006B9")]
public bool IsCompleted
{
[Token(Token = "0x6002C55")]
[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: 0x06002C56 RID: 11350 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C56")]
[Address(RVA = "0x2CFD110", Offset = "0x2CFC110", VA = "0x182CFD110", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
/// Schedules the continuation action for the asynchronous task associated with this awaiter.
/// The action to invoke when the await operation completes.
///
/// is .
/// The awaiter was not properly initialized.
// Token: 0x06002C57 RID: 11351 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C57")]
[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 result of the completed task.
/// The object was not properly initialized.
/// The task was canceled.
/// The task completed in a state.
// Token: 0x06002C58 RID: 11352 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002C58")]
[Address(RVA = "0x2F02CE0", Offset = "0x2F01CE0", VA = "0x182F02CE0")]
public TResult GetResult()
{
return null;
}
// Token: 0x04001947 RID: 6471
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001947")]
private readonly Task m_task;
}
}