Async Klasse
- java.
lang. Object - com.
microsoft. bot. connector. Async
- com.
public final class Async
Asyc- und CompletableFuture-Hilfsmethoden.
Methodenzusammenfassung
| Modifizierer und Typ | Methode und Beschreibung |
|---|---|
| static java.util.concurrent.CompletableFuture<T> |
<T>completeExceptionally(Throwable ex)
Erstellt eine kompletable |
| static java.util.concurrent.CompletableFuture<T> |
<T>tryCompletable(ThrowSupplier<CompletableFuture<T>> supplier)
Führt einen Block aus, der ein kompletierbares |
| static java.util.concurrent.CompletableFuture<T> |
<T>wrapBlock(ThrowSupplier<T> supplier)
Führt einen Block aus und gibt einen kompletierbaren |
Geerbte Methoden von java.lang.Object
Details zur Methode
<T>completeExceptionally
public static CompletableFuture
Erstellt eine CompletableFuture ausnahmsweise.
Parameter:
Gibt zurück:
<T>tryCompletable
public static CompletableFuture
Führt einen Block aus, der ein CompletableFuture zurückgibt, und fängt alle Ausnahmen ab, um ein abgeschlossenes außergewöhnliches Ergebnis ordnungsgemäß zurückzugeben.
Parameter:
Gibt zurück:
<T>wrapBlock
public static CompletableFuture
Führt einen Block aus und gibt einen CompletableFuture-Wert mit dem Rückgabewert oder der Ausnahme (completeExceptionally) zurück.
Parameter:
Gibt zurück: