mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
async-await: misc fixes and typos (#585)
This commit is contained in:
@@ -27,7 +27,7 @@ impl<T> Compat<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert a valuee into one that can be used with `await!`.
|
||||
/// Convert a value into one that can be used with `await!`.
|
||||
pub trait IntoAwaitable {
|
||||
type Awaitable;
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
||||
/// An extension trait which adds utility methods to `AsyncRead` types.
|
||||
pub trait AsyncReadExt: AsyncRead {
|
||||
/// Tries to read some bytes directly into the given `buf` in asynchronous
|
||||
/// manner, returning a future.
|
||||
/// Tries to read some bytes directly into the given `buf` in an
|
||||
/// asynchronous manner, returning a future.
|
||||
///
|
||||
/// The returned future will resolve to the number of bytes read once the read
|
||||
/// operation is completed.
|
||||
|
||||
@@ -11,7 +11,7 @@ extern crate futures_core;
|
||||
extern crate futures_util;
|
||||
|
||||
// Re-export all of Tokio
|
||||
pub use tokio_main::{
|
||||
pub use tokio::{
|
||||
// Modules
|
||||
clock,
|
||||
codec,
|
||||
@@ -53,7 +53,7 @@ pub mod prelude {
|
||||
//!
|
||||
//! The prelude may grow over time as additional items see ubiquitous use.
|
||||
|
||||
pub use tokio_main::prelude::*;
|
||||
pub use tokio::prelude::*;
|
||||
|
||||
#[doc(inline)]
|
||||
pub use crate::async_await::{
|
||||
|
||||
Reference in New Issue
Block a user