effect-io-ai

Package: effect
Module: Latch

Latch.openUnsafe

Opens the latch synchronously and releases fibers waiting on it.

When to use

Use when you need synchronous code to open a latch immediately and release the fibers waiting on it.

Details

Returns true when this call changed the latch from closed to open, or false if it was already open. This unsafe variant performs the state change immediately instead of returning an Effect.

See

Signature

declare const openUnsafe: (self: Latch) => boolean

Source

Since v4.0.0