Hyperlinkv0.8.0-beta.28

Latch

Latch.openconsteffect/Latch.ts:228
(self: Latch): Effect.Effect<boolean>

Opens the latch and releases fibers waiting on it.

When to use

Use to open a latch and release all fibers that are waiting on it.

Details

The returned effect succeeds with true when this call changed the latch from closed to open, or false if it was already open.

Source effect/Latch.ts:2281 lines
export const open = (self: Latch): Effect.Effect<boolean> => self.open