| Package | Description |
|---|---|
| io.atlassian.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
static <A> Promise.TryConsumer<A> |
Promises.compose(Consumer<? super A> success,
Consumer<Throwable> failure)
Create a
Promise.TryConsumer by composing two Consumer. |
| Modifier and Type | Method and Description |
|---|---|
Promise<A> |
Promise.then(Promise.TryConsumer<? super A> callback)
Registers a TryConsumer to handle both success and failure (exception)
cases.
|
Copyright © 2024 Atlassian. All rights reserved.