https://kotlinlang.org logo
#coroutines
Title
# coroutines
t

Tiago Nunes

06/18/2021, 4:20 PM
Hi everyone, I'm trying to test a ktor call, which is a suspend function, in commonTest. Should I use
runBlocking
,
GlobalScope
, or what? I've tried kotlinx-coroutines-test, to use
runBlockingTest
, but apparently this library is only for JVM?
j

Javier

06/18/2021, 4:30 PM
runBlocking
👍 1
d

Dominaezzz

06/18/2021, 4:59 PM
There's a YouTrack issue for this somewhere...
b

Big Chungus

06/18/2021, 5:42 PM
In the meanwhile you could hack it like this
3 Views