externally-driven-async-rt 0.2.0

Async runtime that is meant to be embedded
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::selector::Directions;

pub(crate) const EVENTS_PER_CALL: usize = if cfg!(test) { 4 } else { 64 };

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[must_use]
pub(crate) enum SelectorEvent {
    Io { token: usize, ready: Directions },
    Timer,
}