Tolriq
11/09/2018, 4:23 PMlaunch {
withContext(IO) { blockingCall() }
lock.release()
}
This can trigger a switch and one may want to optimize to:
launch(IO) {
blockingCall()
lock.release()
}
Is there any interest to do that? Or is it better to keep clear separation between blocking calls on IO and non blocking calls?tateisu
11/10/2018, 6:17 AM