Add values.

This commit is contained in:
David Braun 2017-10-18 14:38:35 -04:00
parent f07e849662
commit b9901df29a
3 changed files with 46 additions and 31 deletions

View file

@ -25,6 +25,7 @@
- [slice(start[, end]) -> Channel](#slicestart-end---channel)
- [some(callbackfn[, thisArg])](#somecallbackfn-thisarg)
- [toString()](#tostring)
- [values() -> async iterator](#values---async-iterator)
- [Functional API](#functional-api)
<!-- /TOC -->
@ -310,6 +311,10 @@ empty channel, it returns `false`.
Return `"Channel(n)"` where `n` is the length of the buffer.
### values() -> async iterator
Return an iterator over the values in the channel.
# Functional API
There is a parallel API to support functional-style programming. Every channel