|0.2.2||May 14, 2021|
|0.2.1||Mar 18, 2021|
|0.2.0||Nov 8, 2020|
|0.1.3||Jul 14, 2020|
|0.0.1||Jan 23, 2020|
#183 in Asynchronous
172 downloads per month
Used in stakker_tui
This integrates the
mio crate with Stakker and makes handling
mio sources more convenient.
See the crate documentation.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Integrates mio into Stakker.
MioPoll is the main type. It handles polling and converting
mio events into Stakker forward calls. It offers priority
levels to allow some events to take priority over others. In
addition token cleanup is handled through drop handlers.
All calls retry on
ErrorKind::Interrupted internally, so this
error doesn't have to be handled by the caller. Retrying is the
most helpful behaviour in a non-blocking event loop. In an app
using blocking I/O you might want a blocked call to be cut short
on a signal, but that case doesn't apply here.
The mio version used by this library is re-exported as
stakker_mio::mio. This should be used by applications in place
of importing mio directly, to guarantee they're using the same