Warning · Resource lifecycle
Impact
If the loop keeps running, Ctrl-C sets the old event instead of interrupting subsequent work.
Recommended action
Remove the signal-handler setup from the example, or scope it to the wait with cleanup in a `finally` block.