docs: add documentation for iterating over channels (#3)

This commit is contained in:
Ar Nazeh 2022-04-06 12:48:35 +03:00 committed by GitHub
parent 734be1f070
commit 3a2c88c5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ Same as `channel.cork` but on the muxer instance.
Same as `channel.uncork` but on the muxer instance.
#### `for (const channel of muxer) { ... }`
The muxer instance is iterable, so you can iterate over all the channels.
## License
MIT