Is it bad to call a blocking function from inside a coroutine?
z
Zach Klippenstein (he/him) [MOD]
08/10/2020, 11:51 PM
If there’s a non-blocking version of the function, it’s better to use that. Otherwise, just make sure you’re on the IO dispatcher before calling blocking functions.
c
Chris Cordero
08/10/2020, 11:53 PM
How is the IO dispatcher different from the default?
z
Zach Klippenstein (he/him) [MOD]
08/10/2020, 11:54 PM
Read the kdocs on them, they explain the difference.