<@U2E974ELT> Did you mean "Confine coroutine execu...
# coroutines
c
@elizarov Did you mean "Confine coroutine execution on a non main thread"? Coroutines are typically network or file stuff, they should be kept out of the the EDT
e
You can do animations on the main thread with coroutine. Perfectly fine use-case.
As for IO, you only need to offload blocking IO out of the main thread. If your IO is non blocking (all represented as suspending functions) then you can use it from UI-confined coroutines directly. It becomes really easy to program if everything is non-blocking.