pub trait Task: Task + Sized {
// Provided method
fn with<R>(
self,
run: impl FnOnce() -> R,
) -> Result<(R, Self::Output), Start> { ... }
}Expand description
Runs the parent locally and returns the worker’s output after its join.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".