Write documentation for iced_futures

This commit is contained in:
Héctor Ramón Jiménez 2020-01-20 09:49:17 +01:00
parent 03da887339
commit f14009601e
11 changed files with 131 additions and 20 deletions

View file

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

View file

@ -2,6 +2,8 @@ use crate::Executor;
use futures::Future;
/// An executor that drops all the futures, instead of spawning them.
#[derive(Debug)]
pub struct Null;
impl Executor for Null {

View file

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

View file

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