Skip to content

Channel splitting #299

Answered by Eugeny
spoutn1k asked this question in Q&A
Jun 7, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You're correct, right now there's no built-in way to obtain two AsyncRead for stdout and stderr/extended data as they would have to simultaneously read from the same internal mpsc Receiver. Your solution is conceptually perfectly fine (without reviewing the AsyncRead impl in detail) and is how I'd implement it myself

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@spoutn1k
Comment options

@Eugeny
Comment options

Answer selected by spoutn1k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants