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

Function start

packages/effect/test/Stream.test.ts:517–519  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

515 evaluate: () =>
516 new ReadableStream<number>({
517 start(controller) {
518 controller.error(new Error("boom"))
519 }
520 }),
521 onError: (error) => new Error(`mapped: ${(error as Error).message}`)
522 }).pipe(Stream.runDrain, Effect.exit)

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected