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

Function make

packages/effect/src/internal/stream/handoff.ts:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97/** @internal */
98export const make = <A>(): Effect.Effect<Handoff<A>> =>
99 pipe(
100 Deferred.make<void>(),
101 Effect.flatMap((deferred) => Ref.make(handoffStateEmpty<A>(deferred))),
102 Effect.map((ref): Handoff<A> => ({
103 [HandoffTypeId]: handoffVariance,
104 ref
105 }))
106 )
107
108/** @internal */
109export const offer = dual<

Callers

nothing calls this directly

Calls 4

handoffStateEmptyFunction · 0.85
makeMethod · 0.65
mapMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…