Class DurableFuture<T>

java.lang.Object
dev.restate.sdk.DurableFuture<T>
Type Parameters:
T - type of the future result
Direct Known Subclasses:
Awakeable, CallDurableFuture, Select

public abstract class DurableFuture<T> extends Object
A DurableFuture allows to await an asynchronous result. Once await() is called, the execution stops 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 TerminalException.

NOTE: This interface MUST NOT be accessed concurrently since it can lead to different orderings of user actions, corrupting the execution of the invocation.