BETA
My accountGet started
Mar 142017
Total.js Platform

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: