Crate async_executor[−][src]
Async executors.
Examples
use async_executor::Executor; use futures_lite::future; // Create a new executor. let ex = Executor::new(); // Spawn a task. let task = ex.spawn(async { println!("Hello world"); }); // Run the executor until the task complets. future::block_on(ex.run(task));
Re-exports
pub use async_task::Task; |
Structs
Executor | An async executor. |
LocalExecutor | A thread-local executor. |