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
Usage
To use Loole, place the following line under the [dependencies]
section in your Cargo.toml
:
= "0.1.2"
Benchmarks
MPSC
MPMC
SPSC
License
Loole is licensed under either of:
-
Apache License 2.0, (http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (http://opensource.org/licenses/MIT)