Ejemplo n.º 1
0
 /// <summary>
 /// Schedules the continuation onto the <see cref="T:Theraot.Core.System.Threading.Tasks.Task"/> associated with this <see cref="T:Theraot.Core.System.Runtime.CompilerServices.TaskAwaiter"/>.
 /// </summary>
 /// <param name="continuation">The action to invoke when the await operation completes.</param><exception cref="T:System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception><exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
 /// <remarks>
 /// This method is intended for compiler user rather than use directly in code.
 /// </remarks>
 public void OnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(_task, continuation, _continueOnCapturedContext);
 }
Ejemplo n.º 2
0
 public void UnsafeOnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(_task, continuation, true);
 }