Skip to main content

lexe_tokio/
lib.rs

1//! A crate containing utilities and extensions built on top of Tokio.
2
3/// Wraps a mpmc [`tokio::sync::broadcast`] to provide a convenient events bus.
4pub mod events_bus;
5/// A channel for sending deduplicated notifications with no data attached.
6pub mod notify;
7/// `NotifyOnce`, typically used as a shutdown channel.
8pub mod notify_once;
9/// `LxTask` and associated helpers.
10pub mod task;
11
12// Can save a `tokio` dependency declaration
13pub use tokio;
14
15// Default sizes for Tokio channels
16pub const DEFAULT_CHANNEL_SIZE: usize = 256;
17pub const SMALLER_CHANNEL_SIZE: usize = 16;