Jan Holešovský
09/19/2024, 2:22 PMval responseData = CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).async { ... }
which compiles just fine on Android, but fails to compile on iOS with this error message:
Cannot access 'IO': it is internal in 'Dispatchers'
I've tried to google that, but the only relevant info I found was this: https://github.com/Kotlin/kotlinx.coroutines/issues/3205 according to which it should be implemented. Checked the source code at https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/native/src/Dispatchers.kt ; and indeed, I'd expect the line 22 not to be internal
: https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/native/src/Dispatchers.kt#L22 - but maybe I'm just missing some import or something? Anybody successfully using Dispatchers.IO in a native project?Jan Holešovský
09/19/2024, 2:46 PMJan Holešovský
09/19/2024, 2:48 PMJan Holešovský
09/19/2024, 2:48 PMDmitry Stakhov
09/20/2024, 1:39 AMJan Holešovský
09/20/2024, 7:31 AMimport kotlinx.coroutines.Dispatchers
there, should there be anything else?Jan Holešovský
09/20/2024, 7:31 AMDmitry Stakhov
09/20/2024, 7:47 AMimport <http://kotlinx.coroutines.IO|kotlinx.coroutines.IO>
Jan Holešovský
09/20/2024, 8:12 AMJan Holešovský
09/20/2024, 8:13 AM