releaseLock method

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

Releases the lock with the given key.

  • context (optional) a context to trace execution through call chain.
  • 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(IContext? context, String key) async {
  _locks.remove(key);
}