https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jozef Matus

04/29/2021, 9:00 AM
Hi guys, Im writing iosTest tests and trying to test flows (I’m using multithreaded coroutines). Whenever i try to collect on my flow, test just freezes. Is there some material i can read about testing multithreaded coroutines on ios side? Or any ideas why is it happening?
b

Benoît

04/29/2021, 1:40 PM
Kotlin native is single threaded, you simply can't do this
j

Jozef Matus

04/29/2021, 1:41 PM
There is multithreaded version of coroutines, its in separate brach, Im using that one 🙂
b

Benoît

04/29/2021, 1:43 PM
I'm using that version as well and I've ran into the same issues, it seems that you can use multiple threads but only 1 can run at the same time. Not sure if that's actually the case
Parallelism seems impossible
If you find a solution I'd be interested
j

Jozef Matus

04/29/2021, 1:53 PM
Ok, Im working on it…i’ll let you know
4 Views