Class Awaitable<T>

java.lang.Object
dev.restate.sdk.Awaitable<T>
Type Parameters:
T - type of the awaitable result
Direct Known Subclasses:
AnyAwaitable, Awakeable

public abstract class Awaitable<T> extends Object
An Awaitable 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.