From 3a2c88c5cbaa6d16b64a08613c67ba9aeba64474 Mon Sep 17 00:00:00 2001 From: Ar Nazeh Date: Wed, 6 Apr 2022 12:48:35 +0300 Subject: [PATCH] docs: add documentation for iterating over channels (#3) --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6cda015..23bdad8 100644 --- a/README.md +++ b/README.md @@ -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