                 onFulfilled: { (value) -> Void in
                     results.append(value)
                     if results.count >= count {
-                        allPromise.onFulfilled(results)
+                        allPromise.resolve(results)
                     }
                 },
                 onRejected: { (reason) -> Void in
-                    allPromise.onRejected(reason)
+                    allPromise.reject(reason)
                 }
             )
         }

    
    // MARK: - Callback
    
    func bindCallbacks(#fulfillCallback: FulfillClosure, rejectCallback: RejectClosure)
    {
        self.fulfillCallbacks.append(fulfillCallback)
        self.rejectCallbacks.append(rejectCallback)

            let promise = self.resolve(value)
            promise.then(
                onFulfilled: { (value) -> Void in
                    racePromise.resolve(value)
                },
                onRejected: { (reason) -> Void in
                    racePromise.reject(reason)
                }
            )
        }
