Subtracts the specified amount from the counter. When the counter reaches 0 it will be placed into an unblocked state, enabling any queued callers to proceed.
The number to subtract from the internal counter. Must be a positive integer.
Places the signal into a blocked state. The signal will need to be decremented by a corresponding amount in order to unblock it.
The number to add to the internal counter. Must be a positive integer.
Queues the caller until the counter reaches 0. Once the counter reaches 0, all callers will be invoked in the order they were queued.
A Promise that will be resolved when the counter reaches 0.
Queues callers until the counter reaches 0.