Skip to content

Conversation

@valorwing
Copy link
Contributor

@valorwing valorwing commented Nov 22, 2025

Introduce a cancel feature to the debounce utility, allowing immediate flush
of pending actions during graceful shutdown. Ensures the latest state is saved
without waiting for the original debounce delay.

This improves reliability when shutting down applications that use
debounced writes, preventing potential data loss.

Fixes #9

@valorwing valorwing changed the title Fixes #9 Fixes #9: cancel feature Nov 22, 2025
@bep bep merged commit 15ac326 into bep:master Nov 22, 2025
2 checks passed
@bep
Copy link
Owner

bep commented Nov 22, 2025

Thanks for this, looks good. A little practical tip for the future: GitHub puts the Git commit message into a newly created PR's description field, but it doesn't go the other way around. So my workflow here is to write the text I want to show up in the Git history when I'm committing to Git.

@valorwing
Copy link
Contributor Author

Thanks for the advice. Glad I could contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal for a small additional feature

2 participants