Async Classe
- java.
lang. Object - com.
microsoft. bot. connector. Async
- com.
public final class Async
Méthodes d’assistance Asyc et CompletableFuture.
Résumé de la méthode
| Modificateur et type | Méthode et description |
|---|---|
| static java.util.concurrent.CompletableFuture<T> |
<T>completeExceptionally(Throwable ex)
Construit un |
| static java.util.concurrent.CompletableFuture<T> |
<T>tryCompletable(ThrowSupplier<CompletableFuture<T>> supplier)
Exécute un bloc qui retourne une |
| static java.util.concurrent.CompletableFuture<T> |
<T>wrapBlock(ThrowSupplier<T> supplier)
Exécute un bloc et retourne un |
Méthodes héritées de java.lang.Object
Détails de la méthode
<T>completeExceptionally
public static CompletableFuture
Construit un CompletableFuture terminé exceptionnellement.
Paramètres:
Retours:
<T>tryCompletable
public static CompletableFuture
Exécute un bloc qui retourne un CompletableFuture et intercepte toutes les exceptions afin de retourner correctement un résultat exceptionnel terminé.
Paramètres:
Retours:
<T>wrapBlock
public static CompletableFuture
Exécute un bloc et retourne un CompletableFuture avec la valeur de retour ou l’exception (completeExceptionally).
Paramètres:
Retours: