MCPcopy Create free account
hub / github.com/Effect-TS/effect / start

Function start

packages/effect/test/Channel.test.ts:127–131  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

125 evaluate: () =>
126 new ReadableStream<number>({
127 start(controller) {
128 controller.enqueue(1)
129 controller.enqueue(2)
130 controller.close()
131 }
132 }),
133 onError: (error) => error
134 }).pipe(Channel.runCollect)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected