Skip to content

Instantly share code, notes, and snippets.

domain = require 'domain'
d = domain.create()
d.on 'error', (err) ->
try
console.log 'in domain error handler...'
console.log err.message
throw new Error 'exception from domain error handler'
chainer.add(Project.getTasks())
chainer.add(Project.getTeam())
chainer.run().success(function(results){
var tasks = results[0]
var team = results[1]
})