DurableFuture
A DurableFuture allows to await an asynchronous result. Once await is called, the execution waits until the asynchronous result is available.
The result can be either a success or a failure. In case of a failure, await will throw a dev.restate.sdk.common.TerminalException.
Parameters
type of this future's result
Inheritors
Properties
Clause for select operator.
Functions
Wait for this DurableFuture to complete.
Same as await but throws a dev.restate.sdk.common.TimeoutException if this DurableFuture doesn't complete before the provided timeout
.
Map the success result of this DurableFuture.
Map both the success and the failure result of this DurableFuture.
Map the failure result of this DurableFuture.
Creates a DurableFuture that throws a dev.restate.sdk.common.TimeoutException if this future doesn't complete before the provided timeout
.