Function mark_ui_thread
pub fn mark_ui_thread()Expand description
Mark the calling thread as a UI (event-loop or render) thread.
From then on, block_on and AppRuntime::block_on refuse to run on
it. The toolkit marks its event-loop and render threads; apps need not.