class SemaphoreExtensions extends Object
Extension methods for the Semaphore concurrency utility.
| Constructor and description |
|---|
SemaphoreExtensions() |
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
static T |
acquireAndRelease(Semaphore self, Closure<T> closure)Acquire and release a single permit around the given closure. |