2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-24 17:26:51 +00:00

Fix imports in docs

This commit is contained in:
Stjepan Glavina 2019-09-22 12:41:04 +02:00
parent 797a6b2d90
commit 0e3c47c3bf
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ We use the `select` macro for this purpose:
# extern crate futures_util; # extern crate futures_util;
# use async_std::{net::TcpStream, prelude::*}; # use async_std::{net::TcpStream, prelude::*};
use futures_channel::mpsc; use futures_channel::mpsc;
use futures_util::{select, FutureExt, StreamExt}; use futures_util::{select, FutureExt};
# use std::sync::Arc; # use std::sync::Arc;
# type Receiver<T> = mpsc::UnboundedReceiver<T>; # type Receiver<T> = mpsc::UnboundedReceiver<T>;
@ -131,7 +131,7 @@ use async_std::{
task, task,
}; };
use futures_channel::mpsc; use futures_channel::mpsc;
use futures_util::{select, FutureExt, SinkExt, StreamExt}; use futures_util::{select, FutureExt, SinkExt};
use std::{ use std::{
collections::hash_map::{Entry, HashMap}, collections::hash_map::{Entry, HashMap},
future::Future, future::Future,

View file

@ -23,7 +23,7 @@ use async_std::{
prelude::*, prelude::*,
task, task,
}; };
use futures_util::{select, FutureExt, StreamExt}; use futures_util::{select, FutureExt};
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>; type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;