/// <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()); }