Warning · Concurrency
On Python 3.11, `asyncio.wait_for` can swallow task cancellation if the event waiter has finished but the polling task has not resumed.
Impact
Awaiting the polling task returns `STOPPED` instead of raising `CancelledError`.
Recommended action
Use `asyncio.timeout` around a direct `await event.wait()` so external cancellation propagates.