I think wrapper for wait.for fibers would be a good idea, what do you think?
I mean:
var $wait = require('wait.for'),
$r = $wait.waitify(require('heroku-redis-client').createClient());
// instead of: $wait.forMethod($r, 'get', 'counter'));
// we can be able to do:
$r.hgetAsync('counter'); // Async suffix added by waitify call
I've got this xify pattern idea from bluebird promise library. You can do something like that with it:
var $p = require('bluebird'),
$r = $p.promisifyAll(require('heroku-redis-client').createClient()),
I think wrapper for wait.for fibers would be a good idea, what do you think?
I mean:
I've got this xify pattern idea from bluebird promise library. You can do something like that with it: