Leo Dutra (2016-11-02T14:46:07.000Z)
leodutra.br at gmail.com (2016-11-02T14:49:17.250Z)
This is not only easier, this is faster. We have a single memory allocation and all the threads share it.
leodutra.br at gmail.com (2016-11-02T14:48:21.471Z)
This is not only easier, this is faster. We have a single memory allocation and all the threads share it. Considering your case: let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(x -> console.log(x)) Will output ' worldhello' or 'hello world' like any multithread platform will.