mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
15 lines
290 B
CoffeeScript
15 lines
290 B
CoffeeScript
# Cluster Module
|
|
# ---------
|
|
|
|
return if testingBrowser?
|
|
|
|
cluster = require 'cluster'
|
|
|
|
if cluster.isMaster
|
|
test "#2737 - cluster module can spawn workers from a coffeescript process", ->
|
|
cluster.once 'exit', (worker, code) ->
|
|
eq code, 0
|
|
|
|
cluster.fork()
|
|
else
|
|
process.exit 0
|