acquire resources from the semaphore.
Acquire one or more "resources" from the semaphore. Sleep if not enough are available. The semaphore guarantees a strict FIFO. A new request, even if satifiable, will not be granted until all older requests are granted.
the amount of resources to request.
how long to wait for resources to become available.
TimeoutExpired if timeout has elapsed without satisfying the request.
Also, any other exception may be thrown if injected using theReactor.throwInFiber.
See Implementation
acquire resources from the semaphore.
Acquire one or more "resources" from the semaphore. Sleep if not enough are available. The semaphore guarantees a strict FIFO. A new request, even if satifiable, will not be granted until all older requests are granted.