Skip to main content

off_ui_thread

Function off_ui_thread 

Source
pub fn off_ui_thread()
Expand description

Mark a call that waits — on the session, the device, a service — and so may take seconds. A debug build panics when it runs on a window’s thread: the window would stop drawing and answering for as long as it waits, so a test or a development build that reaches it there fails instead.