on-ready
Wait for a list of readyable objects to be ready. Objects used must have two qualifications:
- has an
on
method - emits a
ready
event - has or can have a
ready
boolean flag to note if ready
Install
With npm
npm install on-ready
Usage
Node.js
var onReady = // use on some redis clientsvar redis = client1 = redis client2 = redis // can call using arguments // repeated calls still work fine