Awaitable

sealed interface Awaitable<T>

An Awaitable 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.core.TerminalException.

Parameters

T

type o1f the awaitable result

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val onAwait: SelectClause<T>

Clause for select operator.

Functions

Link copied to clipboard
abstract suspend fun await(): T