using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// Represents a builder for asynchronous methods that returns a task and provides a parameter for the result.
/// The result to use to complete the task.
// Token: 0x02000535 RID: 1333
[Token(Token = "0x2000535")]
public struct AsyncTaskMethodBuilder
{
/// Creates an instance of the class.
/// A new instance of the builder.
// Token: 0x06002A0C RID: 10764 RVA: 0x00016800 File Offset: 0x00014A00
[Token(Token = "0x6002A0C")]
[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: 0x06002A0D RID: 10765 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0D")]
[Address(RVA = "0x20BA4E0", Offset = "0x20B92E0", VA = "0x1820BA4E0")]
[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: 0x06002A0E RID: 10766 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0E")]
[Address(RVA = "0x2E99AD0", Offset = "0x2E988D0", VA = "0x182E99AD0")]
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: 0x06002A0F RID: 10767 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0F")]
[Address(RVA = "0x20AD560", Offset = "0x20AC360", VA = "0x1820AD560")]
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: 0x06002A10 RID: 10768 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A10")]
[Address(RVA = "0x20B4AF0", Offset = "0x20B38F0", VA = "0x1820B4AF0")]
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.
// Token: 0x1700063C RID: 1596
// (get) Token: 0x06002A11 RID: 10769 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700063C")]
public Task Task
{
[Token(Token = "0x6002A11")]
[Address(RVA = "0x2E9A550", Offset = "0x2E99350", VA = "0x182E9A550")]
get
{
return null;
}
}
/// Marks the task as successfully completed.
/// The result to use to complete the task.
/// The task has already completed.
// Token: 0x06002A12 RID: 10770 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A12")]
[Address(RVA = "0x2E98820", Offset = "0x2E97620", VA = "0x182E98820")]
public void SetResult(TResult result)
{
}
// Token: 0x06002A13 RID: 10771 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A13")]
[Address(RVA = "0x2E98A10", Offset = "0x2E97810", VA = "0x182E98A10")]
internal void SetResult(Task completedTask)
{
}
/// 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.
// Token: 0x06002A14 RID: 10772 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A14")]
[Address(RVA = "0x2E97BC0", Offset = "0x2E969C0", VA = "0x182E97BC0")]
public void SetException(Exception exception)
{
}
// Token: 0x06002A15 RID: 10773 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A15")]
[Address(RVA = "0x2E90920", Offset = "0x2E8F720", VA = "0x182E90920")]
private Task GetTaskForResult(TResult result)
{
return null;
}
// Token: 0x0400186D RID: 6253
[Token(Token = "0x400186D")]
internal static readonly Task s_defaultResultTask;
// Token: 0x0400186E RID: 6254
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400186E")]
private AsyncMethodBuilderCore m_coreState;
// Token: 0x0400186F RID: 6255
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400186F")]
private Task m_task;
}
}