Is it possible to use the Kotlin Native Worker API to run tasks in parallel? Have a situation where the linuxX64 code base is running tasks in parallel via the KotlinX Coroutines library, however the linuxArm32Hfp code base is running tasks in a basic event loop. The KotlinX Coroutines library isn't available for the Linux ARM targets, and it doesn't look like that will change anytime soon 😦.
a
Arkadii Ivanov
06/08/2020, 9:15 AM
What is basic event loop? AFAIK there is no event loop in any Linux target.
n
napperley
06/08/2020, 11:39 PM
Talking about something like this:
Copy code
while (true) {
task1()
task2()
// ...
delay(2000)
}
a
Arkadii Ivanov
06/09/2020, 4:52 PM
Got it. Coroutines do not support multithreading in K/N currently. Also yes, they are not available for lunuxArm32Hfp. The only way to run multithreading in both targets is Worker API. Also you try the Reaktive library which is based on Workers.