CallDurableFuture
The DurableFuture returned by a Context.call.
Properties
Link copied to clipboard
Clause for select operator.
Functions
Link copied to clipboard
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
.
Link copied to clipboard
Get the invocation id of this call.
Link copied to clipboard
Map the success result of this DurableFuture.
abstract suspend fun <R> map(transformSuccess: suspend (value: T) -> R, transformFailure: suspend (exception: TerminalException) -> R): DurableFuture<R>
Map both the success and the failure result of this DurableFuture.
Link copied to clipboard
abstract suspend fun mapFailure(transform: suspend (exception: TerminalException) -> T): DurableFuture<T>
Map the failure result of this DurableFuture.
Link copied to clipboard
Creates a DurableFuture that throws a dev.restate.sdk.common.TimeoutException if this future doesn't complete before the provided timeout
.