Marc Knaup
01/26/2021, 4:28 PMDefault
dispatcher? Or do you you accept that the current dispatcher (whatever it is) is potentially blocked for a few milliseconds?
I have the habit of wrapping such code in withContext(Dispatchers.Default) { … }
, but I’m not actually sure if that’s necessary. Or maybe it’s even a bad idea.krzysztof
01/26/2021, 4:33 PMmain
dispatcher? It’d mean you’ll block UI, if you don’t change the threadMarc Knaup
01/26/2021, 4:35 PMMain
dispatchers. I mostly have such cases in back-end where I don’t use Main
.christophsturm
01/26/2021, 4:39 PMlouiscad
01/27/2021, 8:11 PMuli
01/28/2021, 2:41 PMkrzysztof
01/28/2021, 2:45 PM