whenOpened

fun PushOutputChannel<*>.whenOpened(callback: context(Simulator) () -> Unit)

Registers a callback to be invoked when this channel opens.

Parameters

callback

the lambda to invoke when the channel opens