swactor/src/lib.rs

22 lines
448 B
Rust
Raw Normal View History

pub mod actor;
pub(crate) mod error;
pub use error::Error;
mod ring_buffer;
mod router;
pub mod runtime;
#[cfg(feature = "getrandom")]
pub(crate) fn get_random(buf: &mut [u8]) {
getrandom::getrandom(buf).unwrap()
}
/// The strategy for message processing is such:
/// if total_messages < WATERLEVEL:
/// process all
/// else
/// process total_messages // 2
const WATERLEVEL: usize = 10;
2026-01-23 06:48:26 +00:00
const DEFAULT_INBOX_CAPACITY: usize = 1_000;