diff options
Diffstat (limited to 'src/waker.rs')
-rw-r--r-- | src/waker.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/waker.rs b/src/waker.rs index bc73029..92fdb4c 100644 --- a/src/waker.rs +++ b/src/waker.rs @@ -1,4 +1,4 @@ -use crate::{poll, sys, Registry, Token}; +use crate::{sys, Registry, Token}; use std::io; @@ -19,7 +19,7 @@ use std::io; /// Only a single `Waker` can be active per [`Poll`], if multiple threads need /// access to the `Waker` it can be shared via for example an `Arc`. What /// happens if multiple `Waker`s are registered with the same `Poll` is -/// undefined. +/// unspecified. /// /// # Implementation notes /// @@ -28,7 +28,7 @@ use std::io; /// kqueue. On Linux it uses [eventfd]. /// /// [implementation notes of `Poll`]: struct.Poll.html#implementation-notes -/// [eventfd]: http://man7.org/linux/man-pages/man2/eventfd.2.html +/// [eventfd]: https://man7.org/linux/man-pages/man2/eventfd.2.html /// /// # Examples /// @@ -84,7 +84,7 @@ impl Waker { pub fn new(registry: &Registry, token: Token) -> io::Result<Waker> { #[cfg(debug_assertions)] registry.register_waker(); - sys::Waker::new(poll::selector(®istry), token).map(|inner| Waker { inner }) + sys::Waker::new(registry.selector(), token).map(|inner| Waker { inner }) } /// Wake up the [`Poll`] associated with this `Waker`. |