Alexander Black
01/08/2022, 5:35 AMBig Chungus
01/08/2022, 11:07 AMAlexander Black
01/08/2022, 4:42 PMBig Chungus
01/08/2022, 4:59 PMAlexander Black
01/09/2022, 3:05 AMval singleThreadDispatcher = newSingleThreadContext("test")
CoroutineScope(singleThreadDispatcher + Job()).launch {
suspend {
createThreadSafeStore(
reducer = appReducer,
enhancer = applyMiddleware(
loggerMiddleware
),
preloadedState = AppState(platformState = platformState)
)
}()
}
Maybe I'm doing something wrong due to a miss understanding of dispatching on coroutines, but for some reason when I run this code my thread stays on the main thread when testing on iOS at least.Alexander Black
01/09/2022, 3:06 AM