sod-mpsc

sod::Service implementations to interact with std::sync::mpsc queues.

Service Impls

Example

```rust use sod::Service; use sod_mpsc::{MpscSender, MpscReceiver}; use std::sync::mpsc;

let (tx, rx) = mpsc::channel(); let pusher = MpscSender::new(tx); let poller = MpscReceiver::new(rx);

pusher.process(1).unwrap(); pusher.process(2).unwrap();

asserteq!(poller.process(()).unwrap(), 1); asserteq!(poller.process(()).unwrap(), 2); ```