Package | Description |
---|---|
ratpack.promise |
Promises are strategy builders for the result of async operations.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SuccessOrErrorPromise<T>
A promise of an outcome that may be a successful result or an error exception.
|
Modifier and Type | Method and Description |
---|---|
SuccessPromise<T> |
SuccessOrErrorPromise.onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|