mirror of https://github.com/smol-rs/polling
b9ab821df1
Previous, `Poller::wait` would bubble signal interruption error to the user. However, this may be unexpected for simple use cases. Thus, this commit makes it so, if `ErrorKind::Interrupted` is received by the underlying `wait()` call, it clears the events and tries to wait again. This also adds a test for this interruption written by @psychon. Co-Authored-By: Uli Schlachter <psychon@users.noreply.github.com> Signed-off-by: John Nunley <dev@notgull.net> |
||
---|---|---|
.. | ||
iocp | ||
os | ||
epoll.rs | ||
kqueue.rs | ||
lib.rs | ||
os.rs | ||
poll.rs | ||
port.rs |