https://kotlinlang.org logo
Title
s

Seri

08/09/2018, 9:10 PM
Ah gotcha, I appreciate the response nonetheless.
g

groostav

08/09/2018, 9:31 PM
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

christophsturm

08/10/2018, 12:56 PM
that looks like a great lib.
s

Seri

08/10/2018, 2:51 PM
Thanks! I’ll take a look