In the new native-mt model what would be the equiv...
# multiplatform
r
In the new native-mt model what would be the equivalent of Dispatchers.IO for iOS in a AppCoroutineDispatchers class with main = Main, computation = Default and io? Would that be
newSingleThreadContext("io")
?
Similar to what you would use in a viewModel to launch a coroutine:
viewModelScope.launch(<http://dispatchers.io|dispatchers.io>) {}
but now in common code
d
Pretty much. (Better to ask in #coroutines)
k
my understating is that there's one default context with a worker, and a main context