Ah gotcha, I appreciate the response nonetheless.
# coroutines
s
Ah gotcha, I appreciate the response nonetheless.
g
Also, I could beat my own chest a little bit, my software involves starting and stopping external programs a lot, so I wanted a library that makes that kotlin friendly. Couldnt find one, so I wrote my own: This library interfaces a
java.lang.Process
as a
Channel<~Message>
. Its got some use-cases in `WindowsTests.kt`: https://github.com/Groostav/kotlinx.exec/blob/master/src/test/kotlin/groostav/kotlinx/exec/WindowsTests.kt
👍 2
The cool thing is that
exec
returns a
Channel
, which then has standard list-style extension functions
map
and
filter
and etc, so processing a processes output looks a lot like simply processing elements in a
list
, which I think is pretty neat, considering the underlying implementation is making the entire thing concurrent.
c
that looks like a great lib.
s
Thanks! I’ll take a look