lockedWith method

bool lockedWith(
  1. T tag,
  2. Object? value
)

Indicates whether an object with the provided tag and value is being executed.

Implementation

bool lockedWith(T tag, Object? value) {
  final _PoolMutex? mutex = _mutexes[tag];
  return mutex != null &&
      mutex.isLocked == true &&
      mutex.values.contains(value);
}