polling/tests
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
..
concurrent_modification.rs bugfix: Handle interrupts while polling 2023-10-27 07:02:08 -07:00
io.rs bugfix: Manage sources being inserted into kqueue 2023-09-27 21:30:46 -07:00
many_connections.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
multiple_pollers.rs docs: Specify behavior when registered in multiple pollers 2023-08-16 09:48:14 -07:00
notify.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
other_modes.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
precision.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
timeout.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
windows_post.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00
windows_waitable.rs breaking: Extract the Events struct and make the Event struct opaque 2023-08-14 10:03:20 -07:00