awakeable

inline suspend fun <T : Any> Context.awakeable(): Awakeable<T>

Create an Awakeable using KtSerdes.json deserializer, 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.

See also