Warning · Performance
Impact
Each poll takes two shared locks twice and can process every pending notification from other waits, consuming time from its own timeout.
Recommended action
Return `False` for a missing event before draining notifications.