Warning · Resource lifecycle
Impact
If the flag check raises, the exception propagates and the callback and its future remain pending until the backoff cutoff.
Recommended action
Move the initial `event.is_set()` call inside the `try` guarded by `handle.cancel()`.