hyperlane-broadcast 2.0.4

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
9
10
11
mod broadcast;
mod broadcast_map;

use hyperlane_broadcast::*;

use std::time::Duration;

use tokio::{
    sync::broadcast::error::{RecvError, SendError},
    time::{error::Elapsed, timeout},
};