Function clipboard_win::with_clipboard_attempts
source ยท pub fn with_clipboard_attempts<F: FnMut()>(num: usize, cb: F) -> SysResult<()>
Expand description
Runs provided callable with open clipboard, returning whether clipboard was open successfully.
If clipboard fails to open, attempts num
number of retries before giving up.
In which case closure is not called