sleep method

Future<void> sleep(
  1. Duration duration
)

A sleep that advances this clock and completes immediately — lets budget tests exercise real timing math with no wall-clock wait.

Implementation

Future<void> sleep(Duration duration) async => advance(duration);