orengine 0.7.0-alpha.1

Optimized ring engine for Rust. It is a lighter and faster asynchronous library than tokio-rs, async-std, may, and even smol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// ID of the CPU core.
pub type CoreId = core_affinity::CoreId;

/// Returns the list of available CPU cores.
pub fn get_core_ids() -> Option<Vec<CoreId>> {
    core_affinity::get_core_ids()
}

/// Sets the affinity of the current thread to the given CPU core.
pub fn set_for_current(core_id: CoreId) {
    core_affinity::set_for_current(core_id);
}