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

Method whenOpen

packages/effect/src/Latch.ts:115–115  ·  view source on GitHub ↗

* Runs the given effect only after the latch allows waiting fibers to * continue. * * **When to use** * * Use to gate an effect behind the latch signal.

(self: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

113 * Use to gate an effect behind the latch signal.
114 */
115 whenOpen<A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<A, E, R>
116
117 /**
118 * Checks whether the latch is currently open or closed.

Callers 10

writeFunction · 0.80
constructorMethod · 0.80
writeFunction · 0.80
Fiber.test.tsFile · 0.80
Latch.tsFile · 0.80
Channel.tsFile · 0.80
Stream.tsFile · 0.80
startFunction · 0.80
writeFunction · 0.80
sendLocalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected