v0.10.0
-
Using the
rateoption withoutinterval, or vice-versa, now throws anError. (It’s okay to use neitherratenorintervalif you don’t want rate-limiting; perhaps you only wantconcurrencylimits.) -
You can call pRateLimit with no options (
pRateLimit()) and this works as a no-op (it doesn’t do any rate limiting), but it prints a warning to the console. To indicate that, yes, you know what you’re doing and really want a no-op, call it like this:pRateLimit({}).