pub fn new_event_loop_allow_any_thread() -> Result<EventLoop<()>, EventLoopError>Expand description
Event loop usable from a non-main thread (worker-thread tests, Linux Wayland/X11).
On Linux this opts both Wayland and X11 builders into any-thread operation. Other platforms receive the ordinary builder and retain its platform rules.
§Errors
Propagates winit event-loop construction failures.
§Examples
let loop_: winit::event_loop::EventLoop<()> =
ailloli_ui_winit::new_event_loop_allow_any_thread().unwrap();