tokio::runtime::context::blocking

Function disallow_block_in_place

Source
pub(crate) fn disallow_block_in_place() -> DisallowBlockInPlaceGuard
Expand description

Disallows blocking in the current runtime context until the guard is dropped.