Timeline for answer to JavaScript, Node.js: is Array.forEach asynchronous? by Rax Wunter
Current License: CC BY-SA 3.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 13, 2019 at 12:03 | comment | added | vasilevich | 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. | |
| Jun 29, 2016 at 13:05 | comment | added | adrianvlupu | I don't see how this is async. call or apply are synchronous. Having a callback doesn't make it async | |
| Jul 29, 2015 at 14:12 | comment | added | Rax Wunter | 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 | |
| Jul 29, 2015 at 14:04 | comment | added | Giles Williams | How is this asynchronous? AFAIK #call will execute immediately? | |
| Jun 21, 2014 at 20:18 | history | answered | Rax Wunter | CC BY-SA 3.0 |