Struct polars_io::pl_async::RuntimeManager
source · pub struct RuntimeManager { /* private fields */ }
Available on crate feature
async
only.Implementations§
source§impl RuntimeManager
impl RuntimeManager
sourcepub fn block_on_potential_spawn<F>(&'static self, future: F) -> F::Output
pub fn block_on_potential_spawn<F>(&'static self, future: F) -> F::Output
Keep track of rayon threads that drive the runtime. Every thread only allows a single runtime. If this thread calls block_on and this rayon thread is already driving an async execution we must start a new thread otherwise we panic. This can happen when we parallelize reads over 100s of files.
§Safety
The tokio runtime flavor is multi-threaded.
pub fn block_on<F>(&self, future: F) -> F::Outputwhere
F: Future,
Auto Trait Implementations§
impl !Freeze for RuntimeManager
impl RefUnwindSafe for RuntimeManager
impl Send for RuntimeManager
impl Sync for RuntimeManager
impl Unpin for RuntimeManager
impl UnwindSafe for RuntimeManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more