Semaphore class

A Semaphore class.

Constructors

Semaphore([int maxCount = 1])

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxCount → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquire() → Future
Acquires a permit from this semaphore, asynchronously blocking until one is available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases a permit, returning it to the semaphore.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited