Skip to content

Commit 0532e6e

Browse files
committed
node-cache - fix: adding unref to check interval to be non blocking
1 parent e74bdf7 commit 0532e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-cache/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export class NodeCache extends Hookified {
429429
const checkPeriodinSeconds = this.options.checkperiod * 1000;
430430
this.intervalId = setInterval(() => {
431431
this.checkData();
432-
}, checkPeriodinSeconds);
432+
}, checkPeriodinSeconds).unref();
433433

434434
return;
435435
}

0 commit comments

Comments
 (0)