GlobalSemaphore class

Global semaphore is a named semaphore with max count of permits equals to 1.

Inheritance

Constructors

GlobalSemaphore([String? name])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxCount int
finalinherited
name String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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