API.md: Add async to reduce's return value.

This commit is contained in:
David Braun 2017-11-28 11:15:13 -05:00
parent 4930e4204d
commit 366249f84f
No known key found for this signature in database
GPG key ID: 5694EEC4D129BDCF

View file

@ -22,7 +22,7 @@
- [length](#length) - [length](#length)
- [map(callbackfn[, thisArg]) -> Channel](#mapcallbackfn-thisarg---channel) - [map(callbackfn[, thisArg]) -> Channel](#mapcallbackfn-thisarg---channel)
- [push(value) -> async bufferLength](#pushvalue---async-bufferlength) - [push(value) -> async bufferLength](#pushvalue---async-bufferlength)
- [reduce(callbackfn[, initialValue])](#reducecallbackfn-initialvalue) - [reduce(callbackfn[, initialValue]) -> async](#reducecallbackfn-initialvalue---async)
- [shift() -> async](#shift---async) - [shift() -> async](#shift---async)
- [slice(start[, end]) -> Channel](#slicestart-end---channel) - [slice(start[, end]) -> Channel](#slicestart-end---channel)
- [some(callbackfn[, thisArg])](#somecallbackfn-thisarg) - [some(callbackfn[, thisArg])](#somecallbackfn-thisarg)
@ -294,7 +294,7 @@ promise.
Unlike `Array`'s method, accept only one `value` at a time. Unlike `Array`'s method, accept only one `value` at a time.
### reduce(callbackfn[, initialValue]) ### reduce(callbackfn[, initialValue]) -> async
`callbackfn` should be a function that takes two arguments (unlike `Array`'s `callbackfn` should be a function that takes two arguments (unlike `Array`'s
version which takes four). `reduce` calls the callback, as a function, once for version which takes four). `reduce` calls the callback, as a function, once for