[−][src]Trait kayrx_karx::futures::Spawner
The value for spawning cases.
Required methods
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a case.
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
Spawn a task to execute a case onto the current thread.
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
Spawn a task to execute a case which may block the running thread.
Implementations on Foreign Types
impl<'_, T: ?Sized> Spawner for &'_ mut T where
T: Spawner,
[src]
T: Spawner,
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
[src]
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
impl<T: ?Sized> Spawner for Box<T> where
T: Spawner,
[src]
T: Spawner,
fn spawn(&mut self, fut: BoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_local(&mut self, fut: LocalBoxFuture<'static, ()>) -> Result<()>
[src]
fn spawn_blocking(
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>
[src]
&mut self,
f: Box<dyn FnOnce() + Send + 'static>
) -> Result<()>