Skip to main content

spawn

Function spawn 

Source
fn spawn<T>(
    handle: &Handle,
    fut: impl Future<Output = Result<T, AvroError>> + Send + 'static,
) -> BoxFuture<'static, Result<T, AvroError>>
where T: Send + 'static,
Expand description

Spawns fut on handle, propagating panics and mapping task cancellation to AvroError::External