Skip to main content

dispatch

Function dispatch 

Source
fn dispatch<F, Fut>(edits: Vec<NewEdit>, check: F)
where F: FnOnce(Vec<NewEdit>) -> Fut, Fut: Future<Output = ()> + Send + 'static,
Expand description

Run check on its own task and return at once, so the caller (the watcher’s loop) never waits on fetching facts or delivering a note.