incrementAndGet method

Future<int> incrementAndGet()

Implementation

Future<int> incrementAndGet() async {
  return await _lock.synchronized(() async {
    _value++;
    return _value;
  });
}