synchronize<T> abstract method

Future<T> synchronize<T>(
  1. Future<T> action()
)

Runs action while holding the lock, waiting for current holders in other contexts to finish first.

Implementation

Future<T> synchronize<T>(Future<T> Function() action);