Skip to content

Commit

Permalink
fix: unref timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew0 authored Jan 17, 2022
1 parent 093f09d commit 5306aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/delay.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = function delay(time) {
return new Promise(resolve => setTimeout(() => resolve(), time));
return new Promise(resolve => setTimeout(() => resolve(), time).unref());
};

0 comments on commit 5306aa0

Please sign in to comment.