with_eventloop_target

Function with_eventloop_target 

Source
pub fn with_eventloop_target<R>(func: impl FnOnce(&EventLoopTarget) -> R) -> R
Expand description

Run closure using current EventLoopTarget

Will panic if it called on outside of runtime thread