fixed imports in futures example

This commit is contained in:
Carl Fredrik Samson
2020-04-10 21:10:48 +02:00
parent 4032c673e2
commit 8934c46679

View File

@@ -24,7 +24,7 @@ Let's start off by getting all our imports right away so you can follow along
```rust, noplaypen, ignore ```rust, noplaypen, ignore
use std::{ use std::{
future::Future, pin::Pin, sync::{ mpsc::{channel, Sender}, Arc, Mutex,}, future::Future, pin::Pin, sync::{ mpsc::{channel, Sender}, Arc, Mutex,},
task::{Context, Poll, RawWaker, RawWakerVTable, Waker}, task::{Context, Poll, RawWaker, RawWakerVTable, Waker}, mem,
thread::{self, JoinHandle}, time::{Duration, Instant}, collections::HashMap thread::{self, JoinHandle}, time::{Duration, Instant}, collections::HashMap
}; };
``` ```