Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder< TResult >.StateMachineBox< TStateMachine > Class Template Referencesealed

Public Member Functions

void SetResult (TResult result)
 
void SetException (Exception error)
 
ValueTaskSourceStatus GetStatus (short token)
 
void OnCompleted (Action< object > continuation, object state, short token, ValueTaskSourceOnCompletedFlags flags)
 
void ClearStateUponCompletion ()
 
void MoveNext ()
 
void OnCompleted (Action< object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
 
void OnCompleted (Action< object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags)
 

Public Attributes

ExecutionContext Context
 
TStateMachine StateMachine
 

Protected Attributes

Action _moveNextAction
 
ManualResetValueTaskSourceCore< TResult_valueTaskSource
 

Static Package Functions

static StateMachineBox< TStateMachine > RentFromCache ()
 

Properties

short Version [get]
 
static ref StateMachineBox< TStateMachine > PerCoreCacheSlot [get]
 
Action MoveNextAction [get]
 

Private Member Functions

TResult IValueTaskSource< TResult >. GetResult (short token)
 
void IValueTaskSource. GetResult (short token)
 
void ReturnToCache ()
 
void IThreadPoolWorkItem. Execute ()
 
TResult IValueTaskSource< TResult >. GetResult (short token)
 
void IValueTaskSource. GetResult (short token)
 
IAsyncStateMachine IAsyncStateMachineBox. GetStateMachineObject ()
 

Static Private Member Functions

static void ExecutionContextCallback (object s)
 

Static Private Attributes

static readonly ContextCallback s_callback = ExecutionContextCallback
 
static readonly PaddedReference[] s_perCoreCache = new PaddedReference[Environment.ProcessorCount]
 
static StateMachineBox< TStateMachine > t_tlsCache
 

Detailed Description

Type Constraints
TStateMachine :IAsyncStateMachine 

Definition at line 128 of file PoolingAsyncValueTaskMethodBuilder.cs.


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