hyperlane-broadcast 2.0.3

hyperlane-broadcast is a lightweight and ergonomic wrapper over Tokio’s broadcast channel designed for easy-to-use publish-subscribe messaging in async Rust applications. It simplifies the native Tokio broadcast API by providing a straightforward interface for broadcasting messages to multiple subscribers with minimal boilerplate.
Documentation
1
2
3
4
5
6
7
8
use crate::*;

/// Represents a concurrent, thread-safe map of broadcast channels, keyed by string.
///
/// This struct provides a way to manage multiple broadcast channels, each identified by a unique string,
/// allowing for dynamic creation, retrieval, and management of broadcast streams.
#[derive(Clone, Debug)]
pub struct BroadcastMap<T: BroadcastTrait>(pub(super) DashMapStringBroadcast<T>);