Question about Workers on Kotlin/Native \ MP on windows:
(I figured the coroutines channel was still the best place to ask the following, even tho I can't do this with coroutines (yet?).)
I've checked out the workers example here [
https://github.com/JetBrains/kotlin-native/blob/master/samples/workers/src/workersMain/kotlin/Workers.kt ] and got that to work,
but I am now wondering if there is a way ( in Kotlin, without resorting to sharing a buffer via C or something like that ) to have a long running process ( e.g. another windows program launched via popen ) running in a worker which periodically sends data ( e.g. a string of the output of the program ) back to the main thread. From what I understand, workers allow you to do work
in a separate "environment", and then "transfer back" the (immutable) data once the worker is done. Is there a canonical way to periodically "send data back" to the "main thread"?