Code example for Semaphore

Methods: availablePermits