Expand description
Primitives and re-exports for handling asynchronous tasks.
Re-exports
pub use futures::sync::oneshot::SpawnHandle;
pub use futures::Async;
pub use futures::Future;
pub use futures::Poll;
pub use tokio::executor::spawn;
pub use tokio::executor::DefaultExecutor;
pub use tokio::executor::Executor;
pub use tokio::executor::Spawn;
pub use tokio::executor::SpawnError;
pub use tokio_threadpool::blocking as poll_blocking;
pub use tokio_threadpool::blocking as poll_blocking;
pub use tokio_threadpool::BlockingError;
Functions
Creates a
Future
to execute the specified function that will block the current thread.Spawns a task to execute the specified blocking section and returns its handle.
Spawns the specified
Future
onto the default task executor, and returns its handle.