https://kotlinlang.org logo
#coroutines
Title
# coroutines
t

Tmpod

03/26/2020, 11:30 PM
Hey! I did a quick search on this channel about asynchronous and coroutine safe subprocesses, and I didn't find anything relevant. Any suggestions on how to achieve this properly? (thinking of Python's
asyncio.create_subprocess_shell
)
d

Dennis

03/27/2020, 12:04 PM
What do you want to do with that?
t

Tmpod

03/27/2020, 12:45 PM
trying to use
ffsend
(https://github.com/timvisee/ffsend)
d

Dennis

03/27/2020, 1:11 PM
So you just want to spawn a process and get the output? https://stackoverflow.com/questions/35421699/how-to-invoke-external-command-from-within-kotlin-code/41495542 There are a couple of options for JVM and even native.
t

Tmpod

03/27/2020, 1:23 PM
But isn't that threaded? Meaning it will halt my coroutine context if I use it?
c

CLOVIS

04/06/2020, 9:13 AM
Kotlinx.io has announced that feature I believe, however it's far from being ready (at least according to their README)
3 Views