Okay. Then it looks like I need cancellable one - I Suppose "launch" is my case
Olekss
01/29/2018, 8:04 PM
But what if I cancel launched coroutine which contains some blocking code - like server socket waiting for incoming messages? Do I have chances - some hooks - to clean up my socket if some evil force cancels my launched coroutine?
a
AJ Alt
01/29/2018, 8:25 PM
Cancellation is cooperative. IIUC, cancellation is implemented by having the suspending function check if it's cancelled at each suspension point, and throw a