[−][src]Crate async_executor
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));
Structs
Executor | An async executor. |
LocalExecutor | A thread-local executor. |
Task | A spawned future. |