inspect_task_start

Macro inspect_task_start 

Source
macro_rules! inspect_task_start {
    ($name:expr) => { ... };
}
Expand description

Begin tracking an async task

§Examples

use async_inspect::inspect_task_start;

async fn my_task() {
    let task_id = inspect_task_start!("my_task");

    // Your async code here

    // Task will be marked as completed when task_id is dropped
}