Warning · Concurrency
If the event was cleared, subsequent flag checks lose the signal.
Impact
The client can poll again or return `TIMED_OUT` instead of `STOPPED`.
Recommended action
Race a separate event-wait task against the timer, preferring a completed event wait and cleaning up pending tasks.