Skip to main content

with_tool_cancellation

Function with_tool_cancellation 

Source
pub async fn with_tool_cancellation<F, T>(token: CancellationToken, fut: F) -> T
where F: Future<Output = T>,
Expand description

Run the provided future with the supplied cancellation token made available to tools.