RosettaCodeData/Task/Concurrent-computing/CoffeeScript/concurrent-computing-2.coffee

9 lines
212 B
CoffeeScript

# The "master" file.
{ fork } = require 'child_process'
path = require 'path'
child_name = path.join __dirname, 'child.coffee'
words = [ 'Enjoy', 'Rosetta', 'Code' ]
fork child_name, [ word ] for word in words