The NoOpSemaphoreAdapter will do nothing and is used for easily mocking ISemaphoreFactory for testing.

IMPORT_PATH: "@daiso-tech/core/semaphore/no-op-semaphore-adapter"

Implements

Constructors

Methods

  • Forcibly releases all slots for the specified semaphore regardless of ownership. Used for emergency cleanup or administrative operations. Bypasses ownership verification for situations where individual slot holders are unavailable.

    Parameters

    Returns Promise<boolean>

    Promise resolving to true if the semaphore existed and slots were released, false if the semaphore doesn't exist or has no acquired slots