with_sandbox

Function with_sandbox 

Source
pub async fn with_sandbox<F, T>(task: F) -> Result<T::Output>
where F: Fn(Worker<Sandbox>) -> T + Send + Sync, T: Future + Send,
Expand description

Run a locally scoped task where a sandbox instanced Worker is supplied.