@byojs/scheduler
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "@byojs/scheduler", | ||
"description": "Throttle/debounce scheduler", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"exports": { | ||
@@ -6,0 +6,0 @@ "./": "./dist/scheduler.mjs" |
@@ -31,3 +31,3 @@ # Scheduler | ||
Throttling prevents a repeated function call from being processed more than once per defined interval of time (e.g., 100ms); an interval timer is started with the *first call* (which resets after each interval transpires). | ||
[Throttling](https://css-tricks.com/debouncing-throttling-explained-examples/#aa-throttle) prevents a repeated function call from being processed more than once per defined interval of time (e.g., 100ms); an interval timer is started with the *first call* (which resets after each interval transpires). | ||
@@ -38,3 +38,3 @@ With leading throttling, the initial call is processed immediately, and any subsequent call attempts, during the interval, will be ignored. With trailing throttling, only the last call is processed, *after* the full interval has transpired (since the first attempted call). | ||
Debouncing resets the delay interval with each attempted call of a function, meaning that the delay of processing an attempted call will continue to increase (unbounded), with each subsequent call attempt during the defined interval. | ||
[Debouncing](https://css-tricks.com/debouncing-throttling-explained-examples/#aa-debounce) resets the delay interval with each attempted call of a function, meaning that the delay of processing an attempted call will continue to increase (unbounded), with each subsequent call attempt during the defined interval. | ||
@@ -41,0 +41,0 @@ With leading debouncing, the initial call is immediately processed, after which subsequent calls are debounced; once a full interval transpires without attempted calls, the most recent call is processed. With trailing debouncing, no initial call is processed, and every call is debounced. |
@@ -1,4 +0,4 @@ | ||
/*! Scheduler: #FILENAME# | ||
/*! byojs/Scheduler: #FILENAME# | ||
v#VERSION# (c) #YEAR# Kyle Simpson | ||
MIT License: http://getify.mit-license.org | ||
*/ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24854