MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / PushDispatchRunning

Method PushDispatchRunning

internal/server/push_dispatch.go:273–277  ·  view source on GitHub ↗

PushDispatchRunning reports whether the dispatch loop has been started and not stopped. Read-only; startup's wiring test reads it (TASK-3939 B2c).

()

Source from the content-addressed store, hash-verified

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).
273func (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

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80