Update sending_messages.md

staging
Stjepan Glavina 5 years ago committed by GitHub
parent c61f4c8b81
commit be616f35bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save