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 685f97e commit 1d52713Copy full SHA for 1d52713
src/SlidingTaskMap.ts
@@ -34,7 +34,7 @@ export class SlidingTaskMap<K, V> extends TaskMap<K, V> {
34
if (ttl > 0 && ttl !== Number.POSITIVE_INFINITY) {
35
const timeoutId = setTimeout(() => {
36
this.delete(key);
37
- }, ttl);
+ }, ttl).unref();
38
39
this.ttlMap.set(key, timeoutId);
40
}
0 commit comments