import 'chat_shell_terminal_yield_stub.dart' if (dart.library.js_interop) 'chat_shell_terminal_yield_web.dart' as impl; /// Runs [callback] in a later turn of the event loop, after which the UI /// may have drawn a frame; the returned function cancels it if it has not /// run. On the web this is a message task: a chain of zero-length timers /// is clamped to 4 ms each after a few, which left the emulator idle for /// a third of a large burst. Elsewhere it is a zero-length timer. void Function() chatShellYield(void Function() callback) => impl.chatShellYield(callback);