Expand description
Reactor — I/O readiness event loop.
The reactor multiplexes OS I/O events (epoll / kqueue / IOCP) onto async
tasks. Each thread owns exactly one reactor, accessed via the thread-local
REACTOR. The with_reactor helper provides safe, borrow-scoped access.
Platform dispatch is done entirely at compile time via cfg attributes —
zero runtime overhead, no vtable.
Re-exports§
pub use source::IoSource;
Modules§
- source
IoSource— RAII wrapper that registers an OS handle with the reactor.- waker_
registry - Waker registry — maps reactor tokens to task wakers for I/O readiness.
Structs§
- Reactor
- Thread-owned reactor that wraps the platform-specific backend.
Functions§
- with_
reactor - Borrow the thread-local reactor for the duration of
f.