Stefan Oltmann
11/08/2021, 9:03 AM_Thread_._isMainThread_
which allows me to check that the current code is actually running in a Dispatchers.IO context for example?streetsofboston
11/08/2021, 9:10 AMcoroutineContext[ContinuationInterceptor] == Dispatchers.Main
Stefan Oltmann
11/08/2021, 9:11 AMAdam Powell
11/08/2021, 2:20 PMStefan Oltmann
11/08/2021, 2:23 PMlouiscad
11/08/2021, 3:42 PMisMainThread
will get you covered: https://github.com/LouisCAD/Splitties/tree/main/modules/mainthread