Closed tkellen closed 8 years ago
I just added a small commit to show a more meaningful error message in cases where a scheduler cron pattern is invalid.
Other than my comment, :+1:
The throttler is really interesting. My only comment is that I wish the promise library option was named differently, so one could do this:
const throttle = new Throttle({
requestsPerSecond: 1,
Promise,
});
Actually, I'm :-1: until my 2nd comment is answered. What's currently there is confusing, maybe broken.
Updated based on your suggestions, with a few improvements.
Nice. Go team! :shipit:
:D
/cc @cowboy
I will be landing this if you can't review by EOD Friday.