Returns whether a job of the given kind is running.
(&self, kind: Job)
| 50 | |
| 51 | /// Returns whether a job of the given kind is running. |
| 52 | pub fn is_running(&self, kind: Job) -> bool { |
| 53 | self.jobs.iter().any(|j| j.kind == kind && j.handle.is_some()) |
| 54 | } |
| 55 | |
| 56 | /// Returns whether any job is running. |
| 57 | pub fn any_running(&self) -> bool { |
no test coverage detected