pub struct TaskId(_);
Expand description
A unique identifier for a task.
Examples
use async_std::task;
task::block_on(async {
println!("id = {:?}", task::current().id());
})
pub struct TaskId(_);
A unique identifier for a task.
use async_std::task;
task::block_on(async {
println!("id = {:?}", task::current().id());
})