WebLocksRefreshLock class

Cross-tab refresh lock using the Web Locks API with fallback to in-process synchronization.

Implemented types

Constructors

WebLocksRefreshLock({Duration broadcastGraceMs = const Duration(milliseconds: 100)})
Creates a new WebLocksRefreshLock.

Properties

broadcastGraceMs → Duration
Bounded wait before retrying after a lock grant.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
synchronized<T>(String key, Future<T> body()) → Future<T>
Execute body exclusively under the lock associated with key.
override
toString() → String
A string representation of this object.
inherited

Operators

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