Add Channel.isChannel.

This commit is contained in:
David Braun 2017-10-11 21:50:59 -04:00
parent 74f5673752
commit 7d0d203c2e
No known key found for this signature in database
GPG key ID: 5694EEC4D129BDCF
3 changed files with 18 additions and 5 deletions

View file

@ -173,6 +173,10 @@ These methods are similar to the equivalently named methods of `Array`.
Create a new `Channel` with an optional buffer. This allows an async function
to push up to `bufferLength` values before blocking.
#### Channel.isChannel(value) -> Boolean
Return `true` if `value` is a channel, `false` otherwise.
#### Channel.of(...values) -> Channel
Pushes `values` into a new channel and then closes it.