mqb

Crates.iomqb
lib.rsmqb
version0.2.0
created_at2025-02-25 23:04:41.794752+00
updated_at2025-03-09 18:12:44.298607+00
descriptionLock free in memory message queue broker
homepage
repositoryhttps://github.com/LazyMechanic/mqb
max_upload_size
id1569792
size64,854
Artem (LazyMechanic)

documentation

https://docs.rs/mqb

README

mqb

Crates.io Version docs.rs GitHub Actions Workflow Status

This library provides lock free in memory message queue broker.

[dependencies]
mqb = "0.2"

Usage example

use mqb::MessageQueueBroker;

#[tokio::main]
async fn main() {
    let mqb = MessageQueueBroker::unbounded();
    let sub = mqb.subscribe(1);

    assert!(mqb.send(&1, 1).await.is_ok());
    assert_eq!(sub.recv().await.unwrap(), 1);
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 14

cargo fmt