Expand description
moduvex-runtime — Custom async runtime for the Moduvex framework.
Provides a cross-platform async runtime with:
- Platform-native I/O (epoll, kqueue, IOCP)
- Hybrid threading (thread-per-core default, opt-in work-stealing)
- Hierarchical timer wheel
- Async networking (TCP/UDP)
- Synchronization primitives (mpsc, oneshot, mutex)
- Signal handling
- Task-local storage
Re-exports§
pub use executor::task::JoinError;pub use executor::task::JoinHandle;pub use executor::task_local::AccessError;pub use executor::task_local::TaskLocal;pub use runtime::Runtime;pub use runtime::RuntimeBuilder;pub use net::AsyncRead;pub use net::AsyncWrite;pub use net::TcpListener;pub use net::TcpStream;pub use net::UdpSocket;pub use sync::Mutex;pub use sync::MutexGuard;
Modules§
- executor
- Single-threaded async executor with work-stealing extension points.
- net
- Async networking: TCP listener, TCP stream, UDP socket.
- platform
- Platform abstraction layer.
- reactor
- Reactor — I/O readiness event loop.
- runtime
- Runtime builder and handle.
- signal
- Signal handling for async tasks.
- sync
- Synchronisation primitives for async tasks.
- time
- Async timer primitives: [
sleep],sleep_until, [interval].
Macros§
- task_
local - Declare a task-local key.
Functions§
- block_
on - Drive
futureto completion on the current thread, returning its output. - block_
on_ with_ spawn - Drive
futureto completion, withspawnavailable inside the context. - interval
- Create a periodic interval timer.
- sleep
- Sleep for the given duration.
- spawn
- Spawn a future onto the current thread’s executor.