<@U2E974ELT> is there any way to do this inside a ...
# coroutines
r
@elizarov is there any way to do this inside a lambda?
Copy code
private fun schedule() {
        val wasIdle = status.compareAndSet(MailboxStatus.Idle, MailboxStatus.Busy)
        if (wasIdle) {
            dispatcher.schedule({ run() })  //dispatcher will do a "launch(CommonPool)..."
        }
    }
the "run()" bit will cause a
doResume