Function scope

Source
pub async fn scope<F, R>(locals: TaskLocals, fut: F) -> R
where F: Future<Output = R> + Send + 'static,
Expand description

Set the task local event loop for the given future