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

Function done

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

Source from the content-addressed store, hash-verified

23 return this(Effect.dieMessage(message))
24 },
25 done(this: Emit.Emit<R, E, A, B>, exit: Exit.Exit<A, E>) {
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 },

Callers 4

haltFunction · 0.70
failFunction · 0.70
dieFunction · 0.70
dieMessageFunction · 0.70

Calls 2

flushFunction · 0.85
unsafeOfferMethod · 0.65

Tested by

no test coverage detected