To clarify, the problem with `Unconfined`, is that...
# coroutines
e
To clarify, the problem with
Unconfined
, is that precisely reflected in its name. It is not confined to any thread, so after first suspension it will resume somewhere else (depending on what suspending function you were using). For example:
Copy code
launch(Unconfined) {
   \\ yes, we are still in Android Main Thread here
   delay(1000) \\ wait a second
   \\ Boom! We are now in different thread! Cannot touch our UI anymore!
}
👍 2