MCPcopy Index your code
hub / github.com/Effect-TS/effect / push

Function push

packages/effect/test/Stream/sequencing.test.ts:119–119  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

117 Effect.gen(function*() {
118 const ref = yield* (Ref.make(Chunk.empty<number>()))
119 const push = (n: number) => Ref.update(ref, Chunk.append(n))
120 const latch = yield* (Deferred.make<void>())
121 const fiber = yield* pipe(
122 Stream.make(

Callers 2

sequencing.test.tsFile · 0.70
fromPushPullFunction · 0.50

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected