[][src]Module tsukuyomi_server::rt

Miscellaneous primitives and re-exports for building asynchronous tasks.

Re-exports

pub use futures::sync::oneshot::SpawnHandle;
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::prelude::*;
pub use tokio_threadpool::blocking as poll_blocking;
pub use tokio_threadpool::BlockingError;

Functions

blocking

Creates a Future to execute the specified function that will block the current thread.

spawn_fn

Spawns a task to execute the specified blocking section and returns its handle.

spawn_with_handle

Spawns the specified Future onto the default task executor, and returns its handle.