whenReady

fun PullInputChannel<*>.whenReady(callback: context(Simulator) () -> Unit)

Registers a callback to be invoked when this channel becomes ready.

Parameters

callback

the lambda to invoke when the channel is ready