SimpleMutexInterface class abstract

Base interface for simple mutex implementations.

Implementers

Constructors

SimpleMutexInterface()

Properties

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

Methods

configureQueue({required CancellationToken? cancellationToken, required Duration? timeout}) Future<void>
Configures the queue for waiting threads.
isLocked() bool
Checks if the mutex is currently locked.
isQueueNotEmpty() bool
Checks if the wait queue is not empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protect<T>(Future<T> action(), {CancellationToken? cancellationToken, Duration? timeout}) Future<T>
Executes the provided action within a protected context.
removeFirstItemOfQueue() Completer<void>
Removes and returns the first item from the wait queue.
toString() String
A string representation of this object.
inherited

Operators

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