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:
parent
c61f4c8b81
commit
be616f35bf
1 changed files with 1 additions and 0 deletions
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue