Thomasdezeeuw / gaea

Low-level library to build event driven applications, supporting lightweight non-blocking I/O.
https://docs.rs/gaea/
MIT License
16 stars 0 forks source link

How to handle EINTR, EWOULDBLOCK and EAGAIN in poll #83

Closed Thomasdezeeuw closed 5 years ago

Thomasdezeeuw commented 5 years ago

EINTR (io::ErrorKind::Interrupted), EWOULDBLOCK and EAGAIN (io::ErrorKind::WouldBlock) are three errors that aren't actually errors and can usually be safely ignored.

Thomasdezeeuw commented 5 years ago

I think docs in OsQueue should be enough? I don't really want to force the user to do one thing or another, so I think its best to leave it up to the user to decide what to do.