tj / co-parallel

Execute thunks in parallel with concurrency support
109 stars 9 forks source link

"object is not a function" in example code #10

Open carcinocron opened 8 years ago

carcinocron commented 8 years ago
co(function *(){
  var reqs = urls.map(status);
  var res = yield parallel(reqs, 2);
  console.log(res);
})();

It looks like the last parenthesis do not belong.