예제 #1
0
 /// <summary>Gets the task underlying the incomplete <see cref="_value"/>.</summary>
 /// <remarks>This method is used when awaiting and IsCompleted returned false; thus we expect the value task to be wrapping a non-null task.</remarks>
 Task IConfiguredValueTaskAwaiter.GetTask(out bool continueOnCapturedContext)
 {
     continueOnCapturedContext = _continueOnCapturedContext;
     return(_value.AsTaskExpectNonNull());
 }