MCPcopy
hub / github.com/Effect-TS/effect / end

Function end

packages/effect/src/internal/stream/emit.ts:28–30  ·  view source on GitHub ↗
(this: Emit.Emit<R, E, A, B>)

Source from the content-addressed store, hash-verified

26 return this(Effect.suspend(() => Exit.mapBoth(exit, { onFailure: Option.some, onSuccess: Chunk.of })))
27 },
28 end(this: Emit.Emit<R, E, A, B>) {
29 return this(Effect.fail(Option.none()))
30 },
31 fail(this: Emit.Emit<R, E, A, B>, e: E) {
32 return this(Effect.fail(Option.some(e)))
33 },

Callers

nothing calls this directly

Calls 3

flushFunction · 0.85
failMethod · 0.65
unsafeOfferMethod · 0.65

Tested by

no test coverage detected