idle method

Future<void> idle ()

Acts as if the application went idle.

Runs all remaining microtasks, including those scheduled as a result of running them, until there are no more microtasks scheduled.

Does not run timers. May result in an infinite loop or run out of memory if microtasks continue to recursively schedule new microtasks.

Implementation

Future<void> idle() {
  return TestAsyncUtils.guard<void>(() => binding.idle());
}