damian
Marko Mitic
channel.consumeEach { //bit strange but avoids potential deadlock if callback happens on this thread (as Mutex is not reentrant lock) mutex.lock() mutex.unlock() processResults(it) } onNotReady() { mutex.lock() } onReady() { mutex.unlock() }
A modern programming language that makes developers happier.