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: 0x02000546 RID: 1350
[Token(Token = "0x2000546")]
public struct TaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002A45 RID: 10821 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A45")]
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
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: 0x17000641 RID: 1601
// (get) Token: 0x06002A46 RID: 10822 RVA: 0x00016830 File Offset: 0x00014A30
[Token(Token = "0x17000641")]
public bool IsCompleted
{
[Token(Token = "0x6002A46")]
[Address(RVA = "0x28E73F0", Offset = "0x28E61F0", VA = "0x1828E73F0")]
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: 0x06002A47 RID: 10823 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A47")]
[Address(RVA = "0x28EBB20", Offset = "0x28EA920", VA = "0x1828EBB20", 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: 0x06002A48 RID: 10824 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A48")]
[Address(RVA = "0x28EBB50", Offset = "0x28EA950", VA = "0x1828EBB50", 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: 0x06002A49 RID: 10825 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A49")]
[Address(RVA = "0x28E6EC0", Offset = "0x28E5CC0", VA = "0x1828E6EC0")]
public TResult GetResult()
{
return null;
}
// Token: 0x04001884 RID: 6276
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001884")]
private readonly Task m_task;
}
}