Leo Dutra (2016-11-02T14:47:42.000Z)
leodutra.br at gmail.com (2016-11-02T14:50:16.298Z)
let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(() -> console.log(a.text)) Will output ' worldhello' or 'hello world' like any multithread platform will.
leodutra.br at gmail.com (2016-11-02T14:50:10.418Z)
let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(() -> console.log(a.text)) Will output ' worldhello' or 'hello world' like any multithread platform will.
leodutra.br at gmail.com (2016-11-02T14:49:46.218Z)
let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(() -> console.log(a.text)) Will output ' worldhello' or 'hello world' like any multithread platform will.
leodutra.br at gmail.com (2016-11-02T14:49:26.529Z)
let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(() -> console.log(a.text)) Will output ' worldhello' or 'hello world' like any multithread platform will.
leodutra.br at gmail.com (2016-11-02T14:48:46.236Z)
Sorry... let a = {}; async alpha() { a.text += 'hello' } async beta() { a.text + ' world' } parallel.all( a, b ) // or thread.parallel( a, b ) .then(() -> console.log(a.text))