Package: effect
Module: Latch
Closes the latch so future await and whenOpen calls suspend.
When to use
Use to re-enable waiting on a latch after it was opened, so later await
and whenOpen calls suspend again.
Details
The returned effect succeeds with true when this call changed the latch
from open to closed, or false if it was already closed.
See
closeUnsafe for a synchronous variantopen for opening the latch for current and future waitersSignature
declare const close: (self: Latch) => Effect.Effect<boolean>
Since v4.0.0