Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

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

static void System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder< TResult >.AwaitOnCompleted< TAwaiter, TStateMachine > ( ref TAwaiter awaiter,
ref TStateMachine stateMachine,
ref StateMachineBox box )
inlinestaticpackage
Type Constraints
TAwaiter :INotifyCompletion 
TStateMachine :IAsyncStateMachine 

Definition at line 314 of file PoolingAsyncValueTaskMethodBuilder.cs.

314 : INotifyCompletion where TStateMachine : IAsyncStateMachine
315 {
316 try
317 {
318 awaiter.OnCompleted(GetStateMachineBox(ref stateMachine, ref box).MoveNextAction);
319 }
320 catch (Exception exception)
321 {
323 }
324 }
static void ThrowAsync(Exception exception, SynchronizationContext targetContext)
Definition Task.cs:1806

References System.exception, System.stateMachine, and System.Threading.Tasks.Task< TResult >.ThrowAsync().