Skip to main contentModule spawn
Source 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; ๐
- SpawnedReader
- An
AsyncFileReader that performs I/O on a separate tokio runtime.
- spawn ๐
- Spawns
fut on handle, propagating panics and mapping task cancellation
to AvroError::External