Package-level declarations
Types
Functions
Link copied to clipboard
inline suspend fun <T : Any> BrokerCoroutines.listen(noinline handler: suspend (T) -> Unit): AutoCloseable
Registers a handler to listen for messages of a specific type.
Link copied to clipboard
inline suspend fun <T : Any, R : Any> BrokerCoroutines.respond(noinline handler: suspend (T) -> R?): AutoCloseable
Registers a function to respond to incoming messages of a specific type.
Link copied to clipboard
Extension for the Broker interface to integrate with coroutines.