Bounded concurrency gate.
concurrent holders
maximum waiting acquirers
Number of slots currently held.
Acquire a slot.
release function, or undefined when the queue is full
Bounded concurrency gate.