[go-nuts] Re: Non-blocking Read from StdoutPipe and StderrPipe

2024-10-16 Thread Peter Bočan
Hey peeps, thank you for your input, I will try these options and see how it goes. Regards, Peter. On Tuesday 15 October 2024 at 10:12:15 UTC+1 Brian Candler wrote: > On Monday 14 October 2024 at 22:57:07 UTC+1 Peter Bočan wrote: > > What is the recommended way of reading whatever is on the b

[go-nuts] Re: Non-blocking Read from StdoutPipe and StderrPipe

2024-10-15 Thread 'Brian Candler' via golang-nuts
On Monday 14 October 2024 at 22:57:07 UTC+1 Peter Bočan wrote: What is the recommended way of reading whatever is on the buffer and return back without blocking? If you just want to poll, and get whatever data is available: set a deadline of "just after now", and read. https://go.dev/play/p/bF