Async Class
- java.
lang. Object - com.
microsoft. bot. connector. Async
- com.
public final class Async
Asyc and CompletableFuture helpers methods.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static java.util.concurrent.CompletableFuture<T> |
<T>completeExceptionally(Throwable ex)
Constructs a Completable |
| static java.util.concurrent.CompletableFuture<T> |
<T>tryCompletable(ThrowSupplier<CompletableFuture<T>> supplier)
Executes a block that returns a Completable |
| static java.util.concurrent.CompletableFuture<T> |
<T>wrapBlock(ThrowSupplier<T> supplier)
Executes a block and returns a Completable |
Methods inherited from java.lang.Object
Method Details
<T>completeExceptionally
public static CompletableFuture
Constructs a CompletableFuture completed exceptionally.
Parameters:
Returns:
<T>tryCompletable
public static CompletableFuture
Executes a block that returns a CompletableFuture, and catches any exceptions in order to properly return a completed exceptionally result.
Parameters:
Returns:
<T>wrapBlock
public static CompletableFuture
Executes a block and returns a CompletableFuture with either the return value or the exception (completeExceptionally).
Parameters:
Returns: