chjj / charged

High-level Chargify API binding for node.js
MIT License
10 stars 5 forks source link

Concurrency of Requests #3

Closed indexzero closed 11 years ago

indexzero commented 11 years ago

Everything is serial now. e.g. If you want to list every subscription each page is requested one after the other.

It would be nice to specify this level of concurrency to charged.

chjj commented 11 years ago

Added. Still kind of messy, but it should work. I'll do another release soon.

chjj commented 11 years ago

Oh, forgot to mention an example.

charged.getSubscriptions({
  max: 1000,
  concurrency: 2
}, function () { ... });