Is it possible to use the Kotlin Native Worker API...
# kotlin-native
n
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
What is basic event loop? AFAIK there is no event loop in any Linux target.
n
Talking about something like this:
Copy code
while (true) {
    task1()
    task2()
    // ...
    delay(2000)
}
a
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.