Broadcast.from(input[, options])
input<AsyncIterable> | <Iterable> | <BroadcastChannel>options<Object> 与broadcast()相同。- 返回:<Object>
{ writer, broadcast }
从现有来源创建一个 <BroadcastChannel>。来源会被自动使用,并推送给所有订阅者。
🌐 Create a <BroadcastChannel> from an existing source. The source is consumed automatically and pushed to all subscribers.