Skip to main content

spawn_for_project

Function spawn_for_project 

Source
pub fn spawn_for_project<T: Send + 'static>(
    project: impl Into<PathBuf>,
    operation: impl FnOnce() -> T + Send + 'static,
) -> JoinHandle<T>
Expand description

Start operation on its own thread as part of a request for project. A spawned thread inherits no task-local: without this it reads the configuration and admission state of the process’s own project (AP04-G3).