run<T> abstract method

Future<T> run<T>(
  1. String name,
  2. Future<T> body()
)

Runs body once no other holder of name is running, and releases name when body completes or throws.

Implementation

Future<T> run<T>(String name, Future<T> Function() body);