DEV Community

Discussion on: Maximizing Code Sharing between Android and iOS with Kotlin Multiplatform

 
pablodesiderioflores profile image
Pablo

But we cannot use with context dispatcher.io with kn as I read kn doesn't have multi threaded coroutines. My question is how the main thread doesn't get block? For example, I need to retrieve and save data from sqlDelight, Android and iOS. Database actions can be long running operations, if kotlin native just accepts kotlin coroutines single thread, so I cannot use dispatcher.io how can I do that?