Add isActive
This commit is contained in:
@@ -33,6 +33,10 @@ class Timer {
|
|||||||
delete this.#timers[identifier];
|
delete this.#timers[identifier];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isActive(identifier) {
|
||||||
|
return this.#timers[identifier].isActive();
|
||||||
|
}
|
||||||
|
|
||||||
cancelAll() {
|
cancelAll() {
|
||||||
// Fetch timers
|
// Fetch timers
|
||||||
let timers = Object.keys(this.#timers);
|
let timers = Object.keys(this.#timers);
|
||||||
|
|||||||
Reference in New Issue
Block a user