Type Alias ISemaphoreFactory

ISemaphoreFactory: {
    create(
        key: string,
        settings: SemaphoreFactoryCreateSettings,
    ): ISemaphore;
}

The ISemaphoreFactory contract defines a way for managing semaphores independent of the underlying technology. It comes with more convenient methods compared to ISemaphoreAdapter.

IMPORT_PATH: "@daiso-tech/core/semaphore/contracts"

Type declaration