Skip to main content

submit_once

Function submit_once 

Source
pub fn submit_once(
    caller: &str,
    key: &str,
    job: impl FnOnce() -> Option<String> + Send + 'static,
) -> bool
Expand description

submit, unless a job with key is already queued or running (a cache refresh asked for twice is fetched once). false when skipped.