Package: effect
Module: Latch
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
open for the effectful variantrelease to release waiting fibers without opening the latchcloseUnsafe for the synchronous inverse operationSignature
declare const openUnsafe: (self: Latch) => boolean
Since v4.0.0