rogeralsing
07/21/2017, 8:30 AMprivate 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