ResponderCoroutines

interface ResponderCoroutines<T : Any, Y : Any> : Function1<T, Y?>

The interface for handling Pub/Sub messages of type T and providing a response of type Y.

Parameters

T

the type of the message to be handled.

Y

the type of the response.

Properties

Link copied to clipboard
abstract val type: KClass<T>

Retrieves the class type of the message being handled.

Functions

Link copied to clipboard
abstract operator fun invoke(p1: T): Y?