Trait ipfs_sqlite_block_store::cache::Spawner[][src]

pub trait Spawner: Send {
    fn spawn_blocking(&self, f: impl FnOnce() + Send + 'static);
}

Wrapper around a spawn function

Required methods

fn spawn_blocking(&self, f: impl FnOnce() + Send + 'static)[src]

Called by the cache tracker to spawn a small, blocking, io bound task

Loading content...

Implementors

Loading content...