1
0

Add isActive

This commit is contained in:
2024-01-06 17:22:18 +01:00
parent 1e4f7b6828
commit 0af0bb0a56

View File

@@ -33,6 +33,10 @@ class Timer {
delete this.#timers[identifier];
}
isActive(identifier) {
return this.#timers[identifier].isActive();
}
cancelAll() {
// Fetch timers
let timers = Object.keys(this.#timers);