Skip to main content

queue

Function queue 

Source
pub fn queue(
    project_root: &Path,
    right: CloudRight,
    caller: &str,
    what: &str,
    job: impl FnOnce() -> Result<String, CloudError> + Send + 'static,
) -> Result<String, CloudError>
Expand description

Queue the change job (what names it, e.g. “claim of task #4”) for caller. Answers at once that it is queued; what Cloud answered comes with the caller’s next ctx_tasks call, and the cached lists and tasks are refreshed on the next read. Err at once when tasks do not apply here with right (no request made).