idle property

Future<void> get idle

Completes once every queued write and rotation has.

Implementation

Future<void> get idle async {
  while (true) {
    final Future<void> current = _chain;
    await current;
    if (identical(current, _chain)) return;
  }
}