Improve consistency in executor documentation

This commit is contained in:
Héctor Ramón Jiménez 2020-01-20 10:49:25 +01:00
parent 7bb6411dfc
commit 91d9d65a03
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ use crate::Executor;
use futures::Future; use futures::Future;
/// A type representing the `async-std` runtime. /// An `async-std` runtime.
#[derive(Debug)] #[derive(Debug)]
pub struct AsyncStd; pub struct AsyncStd;

View File

@ -2,7 +2,7 @@ use crate::Executor;
use futures::Future; use futures::Future;
/// A thread pool for futures. /// A thread pool runtime for futures.
pub type ThreadPool = futures::executor::ThreadPool; pub type ThreadPool = futures::executor::ThreadPool;
impl Executor for futures::executor::ThreadPool { impl Executor for futures::executor::ThreadPool {

View File

@ -2,7 +2,7 @@ use crate::Executor;
use futures::Future; use futures::Future;
/// The `tokio` runtime. /// A `tokio` runtime.
pub type Tokio = tokio::runtime::Runtime; pub type Tokio = tokio::runtime::Runtime;
impl Executor for Tokio { impl Executor for Tokio {

View File

@ -1,6 +1,6 @@
use crate::Executor; use crate::Executor;
/// A type representing a `wasm-bindgen-futures` runtime. /// A `wasm-bindgen-futures` runtime.
#[derive(Debug)] #[derive(Debug)]
pub struct WasmBindgen; pub struct WasmBindgen;