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: 0x02000550 RID: 1360
[Token(Token = "0x2000550")]
public struct AsyncTaskMethodBuilder
{
/// Creates an instance of the class.
/// A new instance of the builder.
// Token: 0x06002C10 RID: 11280 RVA: 0x00018BB8 File Offset: 0x00016DB8
[Token(Token = "0x6002C10")]
[Address(RVA = "0x437C30", Offset = "0x436C30", VA = "0x180437C30")]
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: 0x06002C11 RID: 11281 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C11")]
[Address(RVA = "0x2507FE0", Offset = "0x2506FE0", VA = "0x182507FE0")]
[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: 0x06002C12 RID: 11282 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C12")]
[Address(RVA = "0x2CE89A0", Offset = "0x2CE79A0", VA = "0x182CE89A0")]
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: 0x06002C13 RID: 11283 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C13")]
[Address(RVA = "0x2505B30", Offset = "0x2504B30", VA = "0x182505B30")]
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: 0x06002C14 RID: 11284 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C14")]
[Address(RVA = "0x2505C50", Offset = "0x2504C50", VA = "0x182505C50")]
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: 0x170006B3 RID: 1715
// (get) Token: 0x06002C15 RID: 11285 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006B3")]
public Task Task
{
[Token(Token = "0x6002C15")]
[Address(RVA = "0x2CE8A60", Offset = "0x2CE7A60", VA = "0x182CE8A60")]
get
{
return null;
}
}
/// Marks the task as successfully completed.
/// The task has already completed.
/// -or-
/// The builder is not initialized.
// Token: 0x06002C16 RID: 11286 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C16")]
[Address(RVA = "0x2CE8930", Offset = "0x2CE7930", VA = "0x182CE8930")]
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: 0x06002C17 RID: 11287 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C17")]
[Address(RVA = "0x2CE88E0", Offset = "0x2CE78E0", VA = "0x182CE88E0")]
public void SetException(Exception exception)
{
}
// Token: 0x0400192E RID: 6446
[Token(Token = "0x400192E")]
private static readonly Task s_cachedCompleted;
// Token: 0x0400192F RID: 6447
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400192F")]
private AsyncTaskMethodBuilder m_builder;
}
}