Skip to content

Commit

Permalink
Add code comment related to setTimeout().unref (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed Dec 18, 2019
1 parent 5a9c76f commit 6201405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/kill.js
Expand Up @@ -21,6 +21,9 @@ const setKillTimeout = (kill, signal, options, killResult) => {
kill('SIGKILL');
}, timeout);

// Guarded because there's no `.unref()` when `execa` is used in the renderer
// process in Electron. This cannot be tested since we don't run tests in
// Electron.
// istanbul ignore else
if (t.unref) {
t.unref();
Expand Down

0 comments on commit 6201405

Please sign in to comment.