Stop the scheduler
(&self)
| 688 | |
| 689 | /// Stop the scheduler |
| 690 | pub async fn stop(&self) { |
| 691 | *self.running.lock().await = false; |
| 692 | } |
| 693 | |
| 694 | /// Get a handle to the running flag, allowing external code to stop the scheduler |
| 695 | pub fn running_flag(&self) -> Arc<Mutex<bool>> { |