Total.js platform
Total.js platform

JavaScript platform for everyone

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

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: