kriskowal / asap

High-priority task queue for Node.js and browsers
MIT License
608 stars 45 forks source link

function to change rawAsap.capacity value must be added #53

Open zamuka opened 9 years ago

zamuka commented 9 years ago

When I handle thousands of promises at the same time I'm getting an error from asap module : asap\asap.js:40 this.task.call(); ^ TypeError: Cannot read property 'call' of null

If i increase the "capacity" value in rawAsap module - errors are gone. So having a Function for changing asap capacity will be useful.

kriskowal commented 9 years ago

The capacity should be adaptive. Thank you for reporting. If you have a chance to write a test that reproduces the problem, I’d be grateful.

Macil commented 9 years ago

This is a duplicate of https://github.com/kriskowal/asap/issues/55 which was fixed.

rkatic commented 9 years ago

As @AgentME already noted, this seems duplicate of #55.