Is there any sample for implementing Coroutine Dis...
# mvikotlin
i
Is there any sample for implementing Coroutine Dispatchers in IOS? Seeing the sample it appears the Dispatchers are not implemented:
Copy code
import kotlinx.coroutines.CoroutineDispatcher

internal actual val mainDispatcher: CoroutineDispatcher get() = throw NotImplementedError()

internal actual val ioDispatcher: CoroutineDispatcher get() = throw NotImplementedError()
a
They are not implemented only for iOS. Better to ask in #kotlin-native channel, as it depends on whether you are using native-mt coroutines or not. native-mt variant provides both Dispatchers.Main and Dispatchers.Default. For IO you probably can create a shared dispatcher via
newSingleThreadContext