(try|async)_io with NamedPipes working example #6811
Replies: 2 comments
-
Ah, this may be because I'm creating a mio named pipe without an event loop associated with it |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, I missed that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use named pipes with either try_io or async_io and can't seem to get very far. I've tried using mio and std::fs::File with the
raw_handle
of a named pipe in order to perform efficient reads, but each time I run the code, the read returns aWouldBlock
error and the readiness flag never goes back to true. I'm attaching some code here to give folks an idea of what I'm talking about, but I'm hoping @amab8901 or someone more familiar with this workflow than I am can help me out and/or add an example to the docs.Beta Was this translation helpful? Give feedback.
All reactions