[][src]Trait xtra_addons::Spawner

pub trait Spawner {
    pub fn spawn<F>(&mut self, fut: F)
    where
        F: 'static + Send + Future<Output = ()>
; }

An Spawner represents anything that can spawn a future to be run in the background. This is used to spawn actors.

Required methods

pub fn spawn<F>(&mut self, fut: F) where
    F: 'static + Send + Future<Output = ()>, 
[src]

Spawn the given future.

Loading content...

Implementors

impl Spawner for AsyncStd[src]

Loading content...