@open-node/ticker
v0.1.1
Published
log recorder, info and error
Downloads
3
Maintainers
Readme
@open-node/ticker
server availability status uphold, auto dependency detection
Installation
Usage
Table of Contents
Ticker
Parameters
Returns Ticker Instance
status
read/write status value
Parameters
Returns boolean server's current status value
tock
Dependency detection runner
Parameters
hitFn
AsyncFunction detection function return true or falsekey
string server‘s keysleepMS
number two times called interval ms
Returns AsyncFunction detection runner be called by async.forever
runner
For a function add dependency detection
Parameters
fn
function Orig function, it will be add dependency detectionkey
string dependency server's keysleepMS
number dependency detection interval ms (optional, default100
)
Returns function 返回处理后的函数