elizarov
suspencCoroutine
suspend fun doSmth() = suspendCoroutine { cont -> // install callback here & invoke cont.resume when it is fired }