loole 0.1.0

A safe async/sync multi-producer, multi-consumer channel
Documentation

Loole

A safe async/sync multi-producer multi-consumer channel.

Producers can send and consumers can receive messages asynchronously or synchronously:

  • async send -> async receive
  • sync send -> sync receive
  • async send -> sync receive
  • sync send -> async receive

Examples

let (tx, rx) = loole::unbounded();
tx.send(10).unwrap();
assert_eq!(rx.recv().unwrap(), 10);

Usage

To use Loole, place the following line under the [dependencies] section in your Cargo.toml:

loole = "x.y"

Benchmarks

MPSC

MPSC

MPMC

MPMC

SPSC

SPSC

License

Loole is licensed under either of: