I'm using co
to execute a generator with a bunch of http requests:
co(function *(){
// resolve multiple promises in parallel
var a = httpRequest(...);
var b = httpRequest(...);
var c = httpRequest(...);
var res = yield [a, b, c];
console.log(res);
}).catch(onerror);
Is there a way for me to introduce a second of sleep between each http request? Thanks.