pub fn add_idle<F: FnMut() + 'static>(cb: F)
👎Deprecated since 1.2.26: please use
add_idle3
insteadExpand description
Add an idle callback to run within the event loop.
Calls to WidgetExt::redraw
within the callback require an explicit sleep