Trait ipfs_sqlite_block_store::cache::Spawner [−][src]
pub trait Spawner: Send + Sync { fn spawn_blocking(&self, f: impl FnOnce() + Send + 'static); }
Expand description
Wrapper around a spawn function
Required methods
fn spawn_blocking(&self, f: impl FnOnce() + Send + 'static)
fn spawn_blocking(&self, f: impl FnOnce() + Send + 'static)
Called by the cache tracker to spawn a small, blocking, io bound task