commander-starter icon indicating copy to clipboard operation
commander-starter copied to clipboard

Implement beforeExit callback

Open mpetrunic opened this issue 6 years ago • 0 comments

Sometimes for command you would need before exit callback which would be called in case of SIGINT, Ctrl+C etc. Some example would be to sensibli close database, p2p connections etc.

We would like this in https://github.com/ChainSafe/lodestar/pull/162

mpetrunic avatar Apr 12 '19 10:04 mpetrunic