elizarov
07/24/2017, 8:54 AMstartCoroutine
. That is right low-level primitive for your needs. All you need is to provide a completion continuation for it and you can even use a shared object for maximal object-allocation savings: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines.experimental/start-coroutine.html