Example #1
0
 /// <summary>
 ///   Gets an awaiter used to await this operation.
 /// </summary>
 /// <param name="operation"> The operation to await. </param>
 public static TaskAwaiter <T> GetAwaiter <T>(this IAwaitable <T> operation)
 {
     return(operation.AsTask().GetAwaiter());
 }