[][src]Function dart_sys::Dart_WaitForEvent

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

Drains the microtask queue, then blocks the calling thread until the current isolate recieves 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.