MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / newStreamFromArray

Function newStreamFromArray

benchmarks/html/benchmarks.js:55–57  ·  view source on GitHub ↗
(Stream, chunks)

Source from the content-addressed store, hash-verified

53}
54
55export async function newStreamFromArray(Stream, chunks) {
56 return await Stream.bytes(Stream.from(chunks));
57}
58
59export async function webStreamFromArray(chunks) {
60 const readable = new ReadableStream({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected