dart:cli library

Utilities for building CLI apps.

Deprecation notice

The functionality of this library is incomplete and may be removed in a later version. See waitFor for details.

Functions

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