Guard

gears.async.Semaphore.Guard
trait Guard extends AutoCloseable

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).

Attributes

Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def release(): Unit

Release the semaphore, must be called exactly once.

Release the semaphore, must be called exactly once.

Attributes

Concrete methods

final def close(): Unit