Struct async_core::RuntimeWrapper
source · pub struct RuntimeWrapper<'a>(_);
Expand description
Wrapper for anything that implements InternalRuntime, used to add a Runtime impl.
Trait Implementations§
source§impl<'a> Runtime<'a> for RuntimeWrapper<'a>
impl<'a> Runtime<'a> for RuntimeWrapper<'a>
source§fn push_boxed(&'a mut self, future: BoxFuture<'static, ()>)
fn push_boxed(&'a mut self, future: BoxFuture<'static, ()>)
Adds a new future to the queue to be completed.
source§fn spawn_boxed(&'a mut self, future: BoxFuture<'static, ()>) -> SpawnedFuture<'a> ⓘ
fn spawn_boxed(&'a mut self, future: BoxFuture<'static, ()>) -> SpawnedFuture<'a> ⓘ
Adds a new future to the queue to be completed and returns a future waiting for the added
future’s completion.
source§fn push(&'a mut self, future: impl Future<Output = ()> + 'static)
fn push(&'a mut self, future: impl Future<Output = ()> + 'static)
Adds a new future to the queue to be completed.