dart:cli library Null safety

Functions

waitFor<T>(Future<T> future, {Duration? timeout}) → T
Suspends the stack, runs microtasks, and handles incoming events until future completes. [...]