Make Register() cleanup delete only the slot created by that specific registration, so stale callbacks cannot remove a newer worker slot. Add concurrentmap.DeleteIf() to perform the check-and-delete atomically. Add tests for DeleteIf behavior. |
||
|---|---|---|
| .. | ||
| notifier.go | ||
| notifier_test.go | ||