A guard that marks a single usage of the Semaphore. Implements java.lang.AutoCloseable so it can be used as a try-with-resource (e.g. with scala.util.Using).
A guard that marks a single usage of the Semaphore. Implements java.lang.AutoCloseable so it can be used as a try-with-resource (e.g. with scala.util.Using).