what if I want to pass it as a channel somewhere, ...
# coroutines
v
what if I want to pass it as a channel somewhere, then wait until it's ready? I do it with a channel like this:
Copy code
suspend fun Actor.getAndReset(): Long {
    val reply = Channel<Long>()
    getAndResetCh.send(reply)
    return reply.receive()
}