PushDispatchRunning reports whether the dispatch loop has been started and not stopped. Read-only; startup's wiring test reads it (TASK-3939 B2c).
()
| 271 | // PushDispatchRunning reports whether the dispatch loop has been started and |
| 272 | // not stopped. Read-only; startup's wiring test reads it (TASK-3939 B2c). |
| 273 | func (s *Server) PushDispatchRunning() bool { |
| 274 | s.pushDispatch.mu.Lock() |
| 275 | defer s.pushDispatch.mu.Unlock() |
| 276 | return s.pushDispatch.running |
| 277 | } |
| 278 | |
| 279 | // PushDispatchApplied is what the dispatcher will use (or is using). Interval |
| 280 | // is the stored setting; StartedInterval is the interval the ticker was |