dthree / dthree/vorpal

Pre-exit cleanup callback

Open
#137 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.6k
Forks
278
PR merge metrics
No merged PRs in 30d

Description

Really enjoying using Vorpal so far! Thank you guys for making such an awesome library happen.

One thing I'm trying to chase down is how to gracefully quit an app I'm working on. I'm emulating a virtual real-world device that does a thing on an interval. When I ctrl-c ctrl-c to exit that device, that interval keeps going and I'm forced to kill node directly as it keeps going forever. I'd like to be able to cancel that and any other async action that may be pending in an exit function.

I couldn't find any events to listen in to for this, and using the API for process itself seems a bit more haphazard than I'd like.

Any plans for this? Elegant workarounds?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.