DEV Community

Sameer
Sameer

Posted on

Answer:

I don't think you want non-blocking IO, at least not for your initial tests. You actually want your reader to block until somebody is ready to write. But then you also probably don't want to reopen the pipe for each read, as that will wait for a writer each time…

Top comments (0)