Skip to main content

blocking

Function blocking 

Source
async fn blocking<T: Send + 'static>(
    f: impl FnOnce(&JobTemplates) -> Result<T, String> + Send + 'static,
) -> Result<T, String>
Expand description

f on a blocking thread: every call reads and hashes template files.