Warning · Logic
Impact
Polling can return `STOPPED` with the event unset, or raise `AttributeError` if the first suspension yields `None`.
Recommended action
Run the full `wait()` coroutine as a task and race its successful completion against the deadline.