close method
Closes the file descriptor or handle used by this mutex.
Implementation
Future<void> close() {
return _internal.lock(() async {
if (_file case final file?) {
await file.close();
_file = null;
}
});
}
Closes the file descriptor or handle used by this mutex.
Future<void> close() {
return _internal.lock(() async {
if (_file case final file?) {
await file.close();
_file = null;
}
});
}