does anyone can import the `kotlinx.coroutines.new...
# kotlin-native
m
does anyone can import the
kotlinx.coroutines.newSingleThreadContext
on kotlin native source folder?
a
I think
newSingleThreadContext
is jvm only Also, this question is more suited in #ktor than #kotlin-native
1
m
ok, I am trying to use it on unit tests for kotlin native, not related with ktor, so I think this is the right place, no?
a
I still think it is meant for #ktor, coz you are trying to use #ktor with #kotlin-native. it just happens that #ktor has libraries covering many many targets
m
no, I am not using ktor (I swear 😁), I am just trying to use coroutines on
nativeTest
source folder…. to make some unit tests with Flows on native side…
a
hahahahahaha, may bad. All this time I was typing #ktor I actually meant to say #coroutines Silly me. Forgive me for the confusion
😂 2
m
ohhhh, now I understand….
a
Once again, forgive the confusion. I should.t be drinking and typing 😆
👍 1
🍻 1
t
it’s part of native if you use the
native-mt
variant at least
m
@Tijl gonna try it now 😁
m
Sometimes just the imports are messed up and code compiles just fine. You can try to copy it from somewhere on github and compile to check if it's the case