Skip to main content

spawn_monitored_blocking

Macro spawn_monitored_blocking 

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

Runs a blocking closure on tokio’s blocking thread pool, like tokio::task::spawn_blocking, counting it in the tasks metric and keeping the caller’s ServerTiming context, like spawn_monitored_task.