map
Map the success result of this DurableFuture.
The transform is executed when awaiting the returned DurableFuture, or a DurableFuture combining it.
Return
a new DurableFuture with the mapped result, when completed
Parameters
the mapper to execute if this DurableFuture completes with success. The mapper can throw a dev.restate.sdk.common.TerminalException, thus failing the returned DurableFuture.
Map both the success and the failure result of this DurableFuture.
The transforms are executed when awaiting the returned DurableFuture, or a DurableFuture combining it.
Return
a new DurableFuture with the mapped result, when completed
Parameters
the mapper to execute if this DurableFuture completes with success. The mapper can throw a dev.restate.sdk.common.TerminalException, thus failing the returned DurableFuture.
the mapper to execute if this DurableFuture completes with failure. The mapper can throw a dev.restate.sdk.common.TerminalException, thus failing the returned DurableFuture.