forked from sindresorhus/exit-hook
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
callback is always called
https://github.com/Tapppi/async-exit-hook/blame/80e692c88e62a88cf5750460ff02c28298e5b09b/readme.md#L60
callback is not always provided
Line 39 in 80e692c
| // Cannot perform async hooks in `exit` event |
should be
exitHook(callback => {
setTimeout(() => {
console.log('exiting 3');
if(callback) callback();
}, 1000);
});
Metadata
Metadata
Assignees
Labels
No labels