listen

expect fun listen(listener: (T) -> Unit): (T) -> Unit(source)

add an event message listener

Return

the listener that was passed in

Parameters

listener

a function to be invoked when an event message is received


expect fun listen(listener: Event<T>): (T) -> Unit(source)
actual fun listen(listener: (T) -> Unit): (T) -> Unit(source)

add an event message listener

Return

the listener that was passed in

Parameters

listener

a function to be invoked when an event message is received


actual fun listen(listener: Event<T>): (T) -> Unit(source)
actual fun listen(listener: (T) -> Unit): (T) -> Unit(source)
actual fun listen(listener: Event<T>): (T) -> Unit(source)