Mikołaj Kąkol
01/03/2020, 7:52 AMkotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
in my native tests when I try to run something like
GlobalScope.async { /* any code*/ }.await()
I'm running that code inside custom runBlocking
implementation for iOS.
What is the go to solution? Should I use custom scope
for spawning corutines? How do you test async/await on iOS/native?Mikołaj Kąkol
01/03/2020, 7:54 AMMikołaj Kąkol
01/03/2020, 8:02 AMmbonnin
01/03/2020, 8:11 AMmbonnin
01/03/2020, 8:12 AMmbonnin
01/03/2020, 8:12 AMMikołaj Kąkol
01/03/2020, 8:13 AMmbonnin
01/03/2020, 8:14 AMMikołaj Kąkol
01/03/2020, 9:09 AM