Beispiel #1
0
 public static ConfiguredTaskAwaitable ConfigureAwait(this IFuture @this, bool continueOnCapturedContext) => @this.AsTask().ConfigureAwait(continueOnCapturedContext);
Beispiel #2
0
 public static TaskAwaiter GetAwaiter(this IFuture @this) => @this.AsTask().GetAwaiter();
Beispiel #3
0
 public static Task AsTask(this IFuture future, CancellationToken token = default(CancellationToken))
 {
     return(future.AsTask <Java.Lang.Object> (token));
 }
Beispiel #4
0
 public static TaskAwaiter <T> GetAwaiter <T>(this IFuture <T> @this) => @this.AsTask().GetAwaiter();
 public static Task <Java.Lang.Object?> AsTask(this IFuture future, CancellationToken cancellationToken = default) =>
 future.AsTask <Java.Lang.Object>(cancellationToken);