waitForAsyncEvents method

  1. @protected
  2. @override
Future<void> waitForAsyncEvents()

May be overridden to change what is awaited.

The default implementation is only microtasks in the NgZone.

Implementation

@protected
@override
Future<void> waitForAsyncEvents() async {
  await super.waitForAsyncEvents();
  if (pendingTimers.isNotEmpty) {
    await Future<void>.delayed(_minimumDurationForAllPendingTimers());
  }
}