MCPcopy Create free account
hub / github.com/effect-app/libs / Deferred.ts

File Deferred.ts

repos/effect/packages/effect/src/Deferred.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * One-time coordination cells for Effect programs. A `Deferred<A, E>` starts
3 * empty, can be completed exactly once with a success, failure, defect, or
4 * interruption, and lets any number of fibers wait for that result. Awaiting a

Callers

nothing calls this directly

Calls 9

doneUnsafeFunction · 0.85
doneFunction · 0.85
syncMethod · 0.80
failFunction · 0.70
evaluateFunction · 0.70
failCauseFunction · 0.70
dieFunction · 0.70
succeedFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected