Class CompletableFutureExtensions
Provides a Java CompletableFuture as a task.
public static class CompletableFutureExtensions
- Inheritance
-
CompletableFutureExtensions
- Inherited Members
Methods
AsTask(CompletableFuture)
Gets a task that completes when the future does.
public static Task<Object?> AsTask(this CompletableFuture completableFuture)
Parameters
completableFutureCompletableFutureThe future.
Returns
- Task<Object>
A task whose result is the future's result's text, as a Java string, or null; or that fails with an exception carrying the Java error's text.
Exceptions
- Exception
The future completed with an error, whose text is the message.