/// <summary>
 /// Schedules the continuation onto the <see cref="T:System.Threading.Tasks.Task"/> associated with this <see cref="T: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);
 }
Exemplo n.º 2
0
 /// <summary>Schedules the continuation onto the <see cref="System.Threading.Tasks.Task"/> associated with this <see cref="TaskAwaiter"/>.</summary>
 /// <param name="continuation">The action to invoke when the await operation completes.</param>
 /// <exception cref="System.ArgumentNullException">The <paramref name="continuation"/> argument is null (Nothing in Visual Basic).</exception>
 /// <exception cref="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 UnsafeOnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(m_task, continuation, m_continueOnCapturedContext, flowExecutionContext: false);
 }
 public void UnsafeOnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(_task, continuation, true);
 }
Exemplo n.º 4
0
 public void OnCompleted(Action continuation) => TaskAwaiter.OnCompletedInternal(_t, continuation, _capturedContext);
Exemplo n.º 5
0
 public void UnsafeOnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal((Task)this.m_task, continuation, true, false);
 }
 public void UnsafeOnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(this.m_task, continuation, this.m_continueOnCapturedContext, false);
 }
Exemplo n.º 7
0
 public void OnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal(this.m_task, continuation, true);
 }
Exemplo n.º 8
0
 public void OnCompleted(Action continuation)
 {
     TaskAwaiter.OnCompletedInternal((Task)this.m_task, continuation, this.m_continueOnCapturedContext, true);
 }