Warning · Resource lifecycle
Impact
Replacing `notify` during the last wait leaves later `Event.set()` calls acquiring SDK locks through the leftover `notify_all` wrapper.
Recommended action
Run per-method restoration whenever the last subscriber leaves.