I have a few fds (obtained from Process.spawn_async_with_pipes
) that I want to read from and write to. Now I saw that there are multiple ways to do so:
IOChannel.unix_new
FileStream.fdopen
UnixInputStream
and UnixOutputStream
What is the difference between these APIs and which one should I take?
IOChannel
FileStream
UnixInputStream / UnixOutputStream
So it depends on several factors which one to use: