Skip to main content

Timeline for answer to Node.js async forEach: thread-safe? by Peter Lyons

Current License: CC BY-SA 3.0

Post Revisions

5 events
when toggle format what by license comment
Dec 19, 2014 at 12:46 vote accept k88074
Dec 18, 2014 at 21:36 comment added Peter Lyons Yes, there's no issue with calling arrayOne.push.
Dec 18, 2014 at 21:35 comment added k88074 Thanks for the answer. My main concern here is not the order, rather if two functions edit the same position in arrayOne, e.g., if both are trying to push in arrayOne[0]. But as far as I understood, this is not a problems since node.js has truly only one thread.
Dec 18, 2014 at 21:32 history edited Peter Lyons CC BY-SA 3.0
added 289 characters in body
Dec 18, 2014 at 21:26 history answered Peter Lyons CC BY-SA 3.0