<@U0KBF8D7V> That is what `suspencCoroutine` does....
# coroutines
e
@Paul Woitaschek That is what
suspencCoroutine
does. So, write:
Copy code
suspend fun doSmth() = suspendCoroutine { cont -> 
   // install callback here & invoke cont.resume when it is fired
}