[DAEMON-238] appcd-util: Add ability to cancel a debounce
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2018-02-16T04:31:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 1.1.0 |
Components | appcd-util |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2018-02-16T04:22:57.000+0000 |
Updated | 2018-02-16T04:31:12.000+0000 |
Description
debounce()
uses a setTimeout()
that has no way to be cancelled. This becomes a problem if you are debouncing events for something that you have shutdown.
https://github.com/appcelerator/appc-daemon/pull/282