Skip to content

v0.10.0

Choose a tag to compare

@natesilva natesilva released this 12 Mar 16:22
2b8ab50
  • Using the rate option without interval, or vice-versa, now throws an Error. (It’s okay to use neither rate nor interval if you don’t want rate-limiting; perhaps you only want concurrency limits.)

  • 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({}).