elizarov
10/16/2017, 11:58 AMoverride suspend fun <I, R> register(id: String, processor: suspend (I) -> R)
(note that processor must be a suspending functional type).
Then you can register to it like this:
.register<ConnectedDevice, Int>("device_connected") { deviceConnected(it) }