Warning · Logic
Impact
If the event is set during the read and the deadline expires before the read returns, callers can receive `TIMED_OUT` instead of `STOPPED`.
Recommended action
Check cancellation before the post-read deadline in both methods, as on the `ProoflineError` path.