Skip to main content

spawn_worker

Function spawn_worker 

Source
pub fn spawn_worker(
    index: Arc<InMemoryMetadataIndex>,
    slatedb: Option<Arc<SlateDbMetadataIndex>>,
    deleter: Arc<dyn EvictionDeleter>,
    config: LruConfig,
    emit: EvictionEmit,
) -> LruEvictionWorker
Expand description

Spawn the eviction worker. The returned worker holds the join handle and signals stop on drop. Returns immediately; the loop runs on the spawned thread.