@open-node/graceful
v0.4.0
Published
Node.js process reload graceful
Downloads
3
Readme
@open-node/graceful
Node.js process reload graceful
Installation
Usage
- your node.js process code
Table of Contents
Graceful
Parameters
info
function log info output
Returns Tick Instance
exit
regist event listenner for exiting
Parameters
listenner
function
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
fn
function 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
fn
AsyncFunction will be wrapped fn (asynchronous)
Returns function Be warpped function
enabled
The process status
Returns boolean status