A function or static value that produces the semaphore key from the wrapped function's arguments. All consumers using the same key share the same semaphore limit.
Maximum number of concurrent slots (consumers) allowed for the semaphore key.
OptionalslotId?: Invokable<TParameters, string>A function or static value that produces a unique slot identifier for the current acquisition attempt. Each concurrent consumer needs a distinct slot ID.
Optionalttl?: ITimeSpan | nullTime-to-live for each acquired slot. If null slots never expire
automatically. If omitted the default TTL of the semaphore factory is
used.
Settings for the distributed-semaphore middleware.