InvocationHandle

sealed interface InvocationHandle<Res>

An invocation handle, that can be used to interact with a running invocation.

Functions

Link copied to clipboard
abstract suspend fun attach(): DurableFuture<Res>

Attach to this invocation. This will wait for the invocation to complete

Link copied to clipboard
abstract suspend fun cancel()

Cancel this invocation.

Link copied to clipboard
abstract suspend fun invocationId(): String
Link copied to clipboard
abstract suspend fun output(): Output<Res>
Link copied to clipboard
abstract suspend fun signal(name: String): SignalHandle

Get a SignalHandle for resolving or rejecting a named signal on this invocation. The receiving handler can await on the signal using Context.signal.