close method

  1. @override
Future<void> close()
override

Release resources used by the Mutex.

Subsequent calls to lock may fail, or may never call the callback.

Implementation

@override
Future<void> close() async {
  _shared?.close();
  await lock(() async {});
}