Why this doesn’t work on K/N ? with coroutines `1....
# kotlin-native
r
Why this doesn’t work on K/N ? with coroutines
1.3.3-native-mt
Copy code
fun getDevice(success: (Device) -> Unit, failure: (Throwable?) -> Unit) {
        GlobalScope.launch(IODispatcher) {
            try {
                withContext(ApplicationDispatcher) {
                    success(Device("noname", "ios", "13"))
                }
            } catch (ex: Exception) {
                withContext(ApplicationDispatcher) {
                    failure(ex)
                }
            }
        }
    }