Function wait_for
pub fn wait_for(dur: f64) -> Result<bool, FltkError> ⓘ
Available on crate feature
dep_fltk
only.Expand description
Waits a maximum of dur
seconds or until “something happens”.
Returns true if an event happened (always true on windows).
Returns false if nothing happened.
§Errors
Can error out on X11 system if interrupted by a signal