Edoardo Luppi
12/26/2020, 5:53 PMandylamax
12/26/2020, 7:34 PMEdoardo Luppi
12/26/2020, 7:36 PMandylamax
12/26/2020, 7:42 PMEdoardo Luppi
12/26/2020, 7:51 PMandylamax
12/26/2020, 8:28 PMinterface ThingGetter {
fun getThing(callback: (Thing)->Unit)
}
suspend fun ThingGetter.await() = suspendCancelableCoroutine {cont->
getThing{thing->
cont.resume(thing)
}
}
Edoardo Luppi
12/26/2020, 8:30 PM