Skip to content

v0.0.8

Latest

Choose a tag to compare

@noelcarl noelcarl released this 04 Aug 21:39
762bc5d
Add Running() method to runnable Group (#7)

Add `Running()` method to `Group`.

## Summary
- `Group.Running()` reports whether `Run` is in progress (including during shutdown); it is not a health signal — use `Alive()` for liveness/readiness
- Overlapping `Run` calls return `ErrAlreadyRunning` via `CompareAndSwap`
- Empty groups never report `Running() == true`
- Covered by `TestRunning`, `TestRunningEmptyGroup`, and `TestRunAlreadyRunning`

---------

Co-authored-by: Cursor <cursoragent@cursor.com>