Trait pyo3_async::AllowThreadsExt
source · pub trait AllowThreadsExt: Sized {
// Provided method
fn allow_threads(self) -> AllowThreads<Self> ⓘ { ... }
}
Expand description
Extension trait to allow threads while polling Future
or [Stream
].
It is implemented for every types.
Provided Methods§
fn allow_threads(self) -> AllowThreads<Self> ⓘ
Object Safety§
This trait is not object safe.