kriszyp/promised-io — Issue #28: seq() always throws an error in case one of the promises rejects
Author: rmocanu
Created: 2012-02-21 13:19:04+00:00
State: open

Hi,

Since the `seq()` method binds `new Deferred().reject` as the error callback for all promises, it means that in case any promise rejects, an error will always get thrown. This is because this error callback tries to notify all it's registered error listeners, but since this is just an empty Deferred object created on the spot, it doesn't have any handlers, so the timeout will throw an error.

Hope I understood and explained it clearly :)

Thanks.