gladiusjs / gladius-core

Core library for Gladius
BSD 3-Clause "New" or "Revised" License
445 stars 48 forks source link

FunctionTasks are failing in when.js when an exception occurs #216

Open modeswitch opened 12 years ago

modeswitch commented 12 years ago

I think we're using when.js incorrectly. When we encounter an exception in the task, we catch it and reject the tasks deferred. This results in when.js reporting that the deferred is already completed.