Macro inspect_point
Source macro_rules! inspect_point {
($label:expr) => { ... };
($label:expr, $message:expr) => { ... };
}
Expand description
Record an inspection point in async code
§Examples
ⓘuse async_inspect::inspect_point;
async fn my_function() {
inspect_point!("start");
let data = fetch_data().await;
inspect_point!("data_fetched", format!("Got {} items", data.len()));
process(data).await;
inspect_point!("done");
}