release method
Releases the lock.
Implementation
Future<void> release() async {
final lock = _lock;
_lock = null;
if (lock == null) return;
_held.remove(File(lockFile).absolute.path);
await lock.unlock();
await lock.close();
}
Releases the lock.
Future<void> release() async {
final lock = _lock;
_lock = null;
if (lock == null) return;
_held.remove(File(lockFile).absolute.path);
await lock.unlock();
await lock.close();
}