timer-chain
Install
npm install timer-chain
Usage
timer-chain
is meant to be used with horologe, but could potentially be used with any object that is an event emitter with a tick
event, has pause, stop, and start instance methods, and an interval
instance property. If the start
method has a wait
argument as it's first argument that also helps.
;; const eachStart = { console;};let chain = 1000 1000 1000; chain; chainstart;
Properties
Methods
chain.start()
chain.stop()
chain.pause()
chain.on(event, callback)
Events
chain.on('tick', callback)
The callback is called on each interval.
chain;
chain.on('start', callback)
chain.on('pause', callback)
chain.on('stop', callback)
About
Chain timers in order.