wait method

Future<void> wait()

Wait for the mutex to be available

Implementation

Future<void> wait() async {
  await acquire();
  release();
}