Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    How is this asynchronous? AFAIK #call will execute immediately? Commented Jul 29, 2015 at 14:04
  • 1
    Of course immediately, but you have callback function to know when all iterations be completed. Here "iterator" argument is a node-style async function with callback. It's similar to async.each method Commented Jul 29, 2015 at 14:12
  • 3
    I don't see how this is async. call or apply are synchronous. Having a callback doesn't make it async Commented Jun 29, 2016 at 13:05
  • 1
    in javascript when people say async, they mean that the code execution does not block the main event loop (aka, it does not make the proccess stuck at one line of code). just putting a callback does not make code async, it has to utilize some form of event loop releasing such as a setTimeout, or setInterval. since durning the time you wait for those, other code can run without interruptions. Commented Oct 13, 2019 at 12:03