2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

Update sending_messages.md

This commit is contained in:
Stjepan Glavina 2019-08-22 23:56:13 +02:00 committed by GitHub
parent c61f4c8b81
commit be616f35bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ if Alice and Charley send two messages to Bob at the same time, Bob will see the
```rust
use futures::channel::mpsc; // 1
use futures::SinkExt;
use std::sync::Arc;
type Sender<T> = mpsc::UnboundedSender<T>; // 2
type Receiver<T> = mpsc::UnboundedReceiver<T>;