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

Function Done

packages/effect/src/internal/core.ts:652–659  ·  view source on GitHub ↗
(value?: A)

Source from the content-addressed store, hash-verified

650
651/** @internal */
652export const Done = <A = void>(value?: A): Cause.Done<A> => {
653 if (value === undefined) return DoneVoid as Cause.Done<A>
654 return {
655 [DoneTypeId]: DoneTypeId,
656 _tag: "Done",
657 value
658 }
659}
660
661const doneVoid = exitFail(DoneVoid)
662

Callers 1

doneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected