We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4950e09 commit 99ede45Copy full SHA for 99ede45
lib/index.ts
@@ -546,6 +546,7 @@ export default class Backburner {
546
547
public cancel(timer?) {
548
cancelCount++;
549
+
550
if (timer === null || timer === undefined) { return false; }
551
let timerType = typeof timer;
552
@@ -715,11 +716,9 @@ export default class Backburner {
715
716
717
private _runExpiredTimers() {
718
this._timerTimeoutId = null;
- if (this._timers.length > 0) {
719
- this.begin();
720
- this._scheduleExpiredTimers();
721
- this.end();
722
- }
+ this.begin();
+ this._scheduleExpiredTimers();
+ this.end();
723
}
724
725
private _scheduleExpiredTimers() {
0 commit comments