Warning · Doc drift
Impact
If the setter changes before dispatch, the queued callback can miss cancellation and leave the wait running.
Recommended action
Queue `lambda: cancel.set()` in both the prose and the example so the event loop resolves the setter at dispatch.