Package | Description |
---|---|
ratpack.exec |
The execution management.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ExecResult<T>
The result of an execution.
|
Modifier and Type | Method and Description |
---|---|
static <T> Result<T> |
Result.error(Throwable error)
Creates a new error result.
|
static <T> Result<T> |
Result.success(T value)
Creates a new successful result.
|
Modifier and Type | Method and Description |
---|---|
default void |
Downstream.accept(Result<? extends T> result)
Signals this downstream, based on the given result.
|
Modifier and Type | Method and Description |
---|---|
default void |
Promise.result(Action<? super Result<T>> resultHandler)
Consume the promised value as a
Result . |
default Promise<T> |
Promise.wiretap(Action<? super Result<T>> listener)
Registers a listener for the promise outcome.
|