AwakeableHandle

sealed interface AwakeableHandle

This class represents a handle to an Awakeable created in another service.

Functions

Link copied to clipboard
abstract suspend fun reject(reason: String)

Complete with failure the Awakeable.

Link copied to clipboard
abstract suspend fun <T : Any> resolve(serde: Serde<T>, payload: T)

Complete with success the Awakeable.

Link copied to clipboard
inline suspend fun <T : Any> AwakeableHandle.resolve(payload: T)

Complete with success the Awakeable using KtSerdes.json serializer.