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

Function done

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

Source from the content-addressed store, hash-verified

662
663/** @internal */
664export const done = <A = void>(value?: A): Effect.Effect<never, Cause.Done<A>> => {
665 if (value === undefined) return doneVoid as any
666 return exitFail(Done(value))
667}

Callers 3

Deferred.tsFile · 0.50
TxDeferred.tsFile · 0.50
DurableDeferred.tsFile · 0.50

Calls 2

exitFailFunction · 0.85
DoneFunction · 0.70

Tested by

no test coverage detected