effect-io-ai

Package: effect
Module: Semaphore

Semaphore.releaseAll

Releases all permits held by this semaphore and returns the resulting available permits.

When to use

Use to return every currently taken permit to a semaphore at once, typically during cleanup of manual take / release protocols.

See

Signature

declare const releaseAll: (self: Semaphore) => Effect.Effect<number>

Source

Since v4.0.0