polling/src
John Nunley b9ab821df1
bugfix: Handle interrupts while polling
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>
2023-10-27 07:02:08 -07:00
..
iocp Remove needless imports (#159) 2023-10-08 17:23:34 +09:00
os bugfix: Manage sources being inserted into kqueue 2023-09-27 21:30:46 -07:00
epoll.rs Remove needless imports (#159) 2023-10-08 17:23:34 +09:00
kqueue.rs bugfix: Manage sources being inserted into kqueue 2023-09-27 21:30:46 -07:00
lib.rs bugfix: Handle interrupts while polling 2023-10-27 07:02:08 -07:00
os.rs feat: Add functionality for posting events to the IOCP (#101) 2023-04-16 07:37:48 -07:00
poll.rs Remove needless imports (#159) 2023-10-08 17:23:34 +09:00
port.rs feat: Make the constructors for Event const 2023-08-21 18:32:21 -07:00