Beamable SDK
Public Member Functions | Static Public Member Functions | Properties | List of all members
Beamable.Common.PromiseAsyncMethodBuilder< T > Class Template Reference

https://github.com/dotnet/roslyn/blob/main/docs/features/task-types.md https://referencesource.microsoft.com/#mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs More...

Public Member Functions

void SetResult (T res)
 
void SetException (Exception ex)
 
void SetStateMachine (IAsyncStateMachine machine)
 
void AwaitOnCompleted< TAwaiter, TStateMachine > (ref TAwaiter awaiter, ref TStateMachine stateMachine)
 
void AwaitUnsafeOnCompleted< TAwaiter, TStateMachine > (ref TAwaiter awaiter, ref TStateMachine stateMachine)
 
void Start< TStateMachine > (ref TStateMachine stateMachine)
 
void SetResult ()
 
void SetException (Exception ex)
 
void SetStateMachine (IAsyncStateMachine machine)
 
void AwaitOnCompleted< TAwaiter, TStateMachine > (ref TAwaiter awaiter, ref TStateMachine stateMachine)
 
void AwaitUnsafeOnCompleted< TAwaiter, TStateMachine > (ref TAwaiter awaiter, ref TStateMachine stateMachine)
 
void Start< TStateMachine > (ref TStateMachine stateMachine)
 

Static Public Member Functions

static PromiseAsyncMethodBuilder< T > Create ()
 
static PromiseAsyncMethodBuilder Create ()
 

Properties

Promise< T > Task [get]
 
Promise Task [get]
 

Detailed Description

https://github.com/dotnet/roslyn/blob/main/docs/features/task-types.md https://referencesource.microsoft.com/#mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs

Template Parameters
T

Member Function Documentation

◆ AwaitOnCompleted< TAwaiter, TStateMachine >() [1/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.AwaitOnCompleted< TAwaiter, TStateMachine > ( ref TAwaiter  awaiter,
ref TStateMachine  stateMachine 
)
inline
Type Constraints
TAwaiter :INotifyCompletion 
TStateMachine :IAsyncStateMachine 

◆ AwaitOnCompleted< TAwaiter, TStateMachine >() [2/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.AwaitOnCompleted< TAwaiter, TStateMachine > ( ref TAwaiter  awaiter,
ref TStateMachine  stateMachine 
)
inline
Type Constraints
TAwaiter :INotifyCompletion 
TStateMachine :IAsyncStateMachine 

◆ AwaitUnsafeOnCompleted< TAwaiter, TStateMachine >() [1/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.AwaitUnsafeOnCompleted< TAwaiter, TStateMachine > ( ref TAwaiter  awaiter,
ref TStateMachine  stateMachine 
)
inline
Type Constraints
TAwaiter :ICriticalNotifyCompletion 
TStateMachine :IAsyncStateMachine 

◆ AwaitUnsafeOnCompleted< TAwaiter, TStateMachine >() [2/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.AwaitUnsafeOnCompleted< TAwaiter, TStateMachine > ( ref TAwaiter  awaiter,
ref TStateMachine  stateMachine 
)
inline
Type Constraints
TAwaiter :ICriticalNotifyCompletion 
TStateMachine :IAsyncStateMachine 

◆ Start< TStateMachine >() [1/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.Start< TStateMachine > ( ref TStateMachine  stateMachine)
inline
Type Constraints
TStateMachine :IAsyncStateMachine 

◆ Start< TStateMachine >() [2/2]

void Beamable.Common.PromiseAsyncMethodBuilder< T >.Start< TStateMachine > ( ref TStateMachine  stateMachine)
inline
Type Constraints
TStateMachine :IAsyncStateMachine 

The documentation for this class was generated from the following file: