GlobalSemaphore class
Global semaphore is a named semaphore with max count of permits equals to 1.
Constructors
- GlobalSemaphore([String? name])
-
factory
Properties
Methods
-
acquire(
) → Future -
Acquires a permit from this semaphore, asyncronously blocking until one is
available.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void -
Releases a permit, returning it to the semaphore.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited