getLock function

Lock getLock(
  1. String key
)

Implementation

Lock getLock(String key) {
  if (!_cacheLocks.containsKey(key)) {
    _cacheLocks[key] = Lock(reentrant: true);
  }

  return _cacheLocks[key]!;
}