Skip to main content

Module spawn

Module spawn 

Source

Re-exportsยง

use std::future::Future; ๐Ÿ”’
use std::ops::Range; ๐Ÿ”’
use bytes::Bytes; ๐Ÿ”’
use futures::future::BoxFuture; ๐Ÿ”’
use futures::FutureExt; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use tokio::runtime::Handle; ๐Ÿ”’
use crate::errors::AvroError; ๐Ÿ”’
use crate::reader::async_reader::AsyncFileReader; ๐Ÿ”’

Structsยง

SpawnedReader
An AsyncFileReader that performs I/O on a separate tokio runtime.

Functionsยง

spawn ๐Ÿ”’
Spawns fut on handle, propagating panics and mapping task cancellation to AvroError::External