releaseLock method

  1. @override
Future releaseLock(
  1. String? correlationId,
  2. String key
)
override

Releases the lock with the given key.

  • correlationId not used.
  • key the key of the lock that is to be released. Return Future the lock has been released. Will be called with null. Throw error

Implementation

@override
Future releaseLock(String? correlationId, String key) async {
  _locks.remove(key);
}