hello.currently, is there any way i can use callba...
# coroutines
m
hello.currently, is there any way i can use callback flow in which i can call a suspend function in awaitClose ?
d
You can place your suspending code after
awaitClose
. (You'll probably want to slap in a `try`/`finally`). You could also use
onCompletion
instead or roll your own version of
awaitClose
that makes the lambda as suspending.
m
hm. i'll give it a try. thanks