Skip to content

Commit 436b186

Browse files
committed
.
1 parent edf04a4 commit 436b186

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/structures/TimerMap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ export default class TimerMap<K, V extends NodeJS.Timeout = NodeJS.Timeout> exte
7979
super.set(key, timer as V);
8080
}
8181

82-
unrefTimeout(key: K) {
83-
return this.get(key)?.unref();
84-
}
85-
8682
protected _autoRefresh(key: K, callback: () => unknown, delay: number) {
8783
const timer = setTimeout(() => {
8884
delay -= maxTimerDelay;
@@ -93,4 +89,8 @@ export default class TimerMap<K, V extends NodeJS.Timeout = NodeJS.Timeout> exte
9389
if (this.autoUnref) timer.unref();
9490
super.set(key, timer as V);
9591
}
92+
93+
unrefTimeout(key: K) {
94+
return this.get(key)?.unref();
95+
}
9696
}

0 commit comments

Comments
 (0)