effect-io-ai

Package: effect
Module: Latch

Latch.open

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.

See

Signature

declare const open: (self: Latch) => Effect.Effect<boolean>

Source

Since v4.0.0