async_executors/iface/
mod.rs

1pub(crate) mod blocking_handle    ;
2pub(crate) mod join_handle        ;
3pub(crate) mod local_spawn_handle ;
4pub(crate) mod spawn_blocking     ;
5pub(crate) mod spawn_handle       ;
6pub(crate) mod timer              ;
7pub(crate) mod yield_now          ;
8
9pub use blocking_handle    ::*;
10pub use join_handle        ::*;
11pub use local_spawn_handle ::*;
12pub use spawn_blocking     ::*;
13pub use spawn_handle       ::*;
14pub use timer              ::*;
15pub use yield_now          ::*;
16
17
18
19#[ cfg( feature = "async_global" ) ]
20//
21use async_global_executor::{ Task as AsyncGlobalTask };
22
23#[ cfg( feature = "async_std" ) ]
24//
25use async_std_crate::{ task::JoinHandle as AsyncStdJoinHandle };
26
27#[ cfg(any( feature = "tokio_tp", feature = "tokio_ct" )) ]
28//
29use tokio::{ task::JoinHandle as TokioJoinHandle };
30
31
32
33/// Trait indicating that tokio IO can be used with the executor that
34/// implements it. Currently this can be enabled through features on [`TokioCt`](crate::TokioCt),
35/// [`TokioTp`](crate::TokioTp), [`AsyncGlobal`](crate::AsyncGlobal) and [`AsyncStd`](crate::AsyncStd).
36///
37/// This means a tokio reactor will be running and that the network types from tokio (eg. `TcpStream`) will work.
38//
39pub trait TokioIo {}