Create a Broadcast from an existing source. The source is consumed automatically and pushed to all subscribers.
function from | node:stream/iter module | Bun BuildDocsReferenceGuidesBlogDiscord/node:stream/iter/Broadcast/fromFfrom BuildDocsReferenceGuidesBlogDiscord /node:stream/iter/Broadcast/fromFfrom stream.iter.Broadcast.fromfunction from(input: ByteReadableStream | SyncByteReadableStream | Broadcastable,options?: BroadcastOptions): BroadcastResult; @param options Referenced typestype ByteReadableStream = AsyncIterableUint8Array[]>type SyncByteReadableStream = IterableUint8Array[]>interface Broadcastable[broadcastProtocol](options: BroadcastOptions): Broadcast;interface BroadcastOptionsbackpressure?: BackpressurePolicyhighWaterMark?: numbersignal?: AbortSignalinterface BroadcastResultbroadcast: Broadcastwriter: BroadcastWriter
Search the reference...
/
function
Same as broadcast().
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function from | node:stream/iter module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function node:stream/iter.Broadcast.from | Bun