pub unsafe extern "C" fn Dart_WaitForEvent(
    timeout_millis: i64
) -> Dart_Handle
Expand description

Drains the microtask queue, then blocks the calling thread until the current isolate receives a message, then handles all messages.

\param timeout_millis When non-zero, the call returns after the indicated number of milliseconds even if no message was received. \return A valid handle if no error occurs, otherwise an error handle.