tylerwilson
07/13/2021, 7:53 PMGlobalScope.launch {
launch(ApplicationDispatcher) {
client.get {
}
}
}
but when testing with a macOS SwiftUI app, I get the following:
Error: There is no event loop. Use runBlocking { ... } to start one.
but runBlocking cannot be used in the common code. Any solutions to this? Is the above ‘canonical’ way to make Ktor client calls in common code?Big Chungus
07/13/2021, 8:46 PMJavier
07/13/2021, 9:05 PMtylerwilson
07/13/2021, 9:21 PMlouiscad
07/14/2021, 7:00 AMtylerwilson
07/14/2021, 1:10 PM