You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My GUI app uses its own JSON config file to keep track of whether an update check should be performed. According to my understanding of the following code snippet, calling update_informer::new(...).interval(Duration::ZERO) is the way to achieve this:
// If the interval is zero, don't use the cache filelet latest_version = ifself.interval.is_zero(){matchR::get_latest_version(client,&pkg)? {Some(v) => v,None => returnOk(None),}}else{
But this isn't documented. Could you please document this usage as a way to completely avoid that the crate does anything on the file system, if I understood this correctly?
BTW: The docs text on interval() says: "An interval in seconds." But it's a Duration, which isn't a second value per se.
The text was updated successfully, but these errors were encountered:
My GUI app uses its own JSON config file to keep track of whether an update check should be performed. According to my understanding of the following code snippet, calling
update_informer::new(...).interval(Duration::ZERO)
is the way to achieve this:But this isn't documented. Could you please document this usage as a way to completely avoid that the crate does anything on the file system, if I understood this correctly?
BTW: The docs text on
interval()
says: "An interval in seconds." But it's aDuration
, which isn't a second value per se.The text was updated successfully, but these errors were encountered: