awakeable

abstract suspend fun <T : Any> awakeable(serde: Serde<T>): Awakeable<T>

Create an Awakeable, addressable through Awakeable.id.

You can use this feature to implement external asynchronous systems interactions, for example you can send a Kafka record including the Awakeable.id, and then let another service consume from Kafka the responses of given external system interaction by using awakeableHandle.

Return

the Awakeable to await on.

Parameters

serde

the response type tag to use for deserializing the Awakeable result.

See also