Add variant of GetDualAsyncEnumerable that returns binary
-
This PR introduces a new method ~~
StartReadBinaryWithErrOutAsync~~ that addresses a limitation in the current implementation. -
When executing apps that write diagnostic messages to stderr while also producing binary output on stdout (e.g. ffmpeg), the current implementation fails to capture the binary output correctly. Even when the process exits with a successful code (0), the binary output is lost.
-
The implementation has been tested with the example in
sandbox/BinaryWithErrorOutputwhich demonstrates the functionality with a real-world scenario.
- The implementation was brought closer to GetDualAsyncEnumerable. The previous implementation was fatally bad in practice because it couldn't retrieve stderr until stdout was complete, so it was changed.
- Renamed the method to
GetDualAsyncEnumerableBinaryfromStartReadBinaryWithErrOutAsyncafter its implemention update.
*Edited PR title to resolve mismatching with codes.
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
keep