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

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

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

Definition at line 206 of file AsyncTaskMethodBuilder.cs.

206 : INotifyCompletion where TStateMachine : IAsyncStateMachine
207 {
208 try
209 {
210 awaiter.OnCompleted(GetStateMachineBox(ref stateMachine, ref taskField).MoveNextAction);
211 }
212 catch (Exception exception)
213 {
215 }
216 }
static void ThrowAsync(Exception exception, SynchronizationContext targetContext)
Definition Task.cs:1806

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