@open-node/graceful
v0.4.0
Published
Node.js process reload graceful
Downloads
4
Readme
@open-node/graceful
Node.js process reload graceful
Installation
Usage
- your node.js process code
Table of Contents
Graceful
Parameters
infofunction log info output
Returns Tick Instance
exit
regist event listenner for exiting
Parameters
listennerfunction
Returns void
runner
Wrap the function sync version. Once the be wrapped function is executed, the process will not exit until the function is executed
Parameters
fnfunction will be wrapped fn
Returns function Be wrapped function
runnerAsync
Wrap the function asynchronous version, Once the be wrapped function is executed, the process will not exit until the function is executed
Parameters
fnAsyncFunction will be wrapped fn (asynchronous)
Returns function Be warpped function
enabled
The process status
Returns boolean status
