From the ecosystem

How can I create a maximum calling limit in a function?

Sometimes we need to add a maximum limit for calling a specific function and this blog post describes how to create it.

How can I create a maximum calling limit in a function?
  • the target function must be asynchronous
  • we use U.queue(name, maximum_calls, fn(next)) method (documentation)

Testing:

Written byPeter Širka
3441 views
Back to top