We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4560294 commit fc9f6c7Copy full SHA for fc9f6c7
Promise.go
@@ -191,7 +191,7 @@ func (obj *Promise) Finally(callback func(interface{})) interface{} {
191
//// WE GO FUNCTIONALL BRRRRRRRRRRRRRR................. ///////////////
192
193
//Map ... for the bluebird affiniadoes , maps your array of promise with a new common then
194
-func Map(promises []*Promise, cb func(value interface{}) (interface{}, error)) []*Promise {
+func Map(promises []*Promise, cb Callback) []*Promise {
195
promisesT := make([]*Promise, len(promises))
196
for i, promise := range promises {
197
promisesT[i] = promise.Then(cb)
0 commit comments