mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Comments.
This commit is contained in:
parent
f21efb6510
commit
f4f5e8c05e
3 changed files with 20 additions and 15 deletions
|
@ -30,8 +30,8 @@ public class UpdateKobalt @Inject constructor(val github: GithubApi, val wrapper
|
|||
}
|
||||
|
||||
/**
|
||||
* Accepts Future<String> as `latestVersionFuture` to allow getting `latestVersion` in the background
|
||||
* */
|
||||
* Accepts Future<String> as `latestVersionFuture` to allow getting `latestVersion` in the background.
|
||||
*/
|
||||
fun checkForNewVersion(latestVersionFuture: Future<String>) {
|
||||
if (Kobalt.versionCheckTimeout > Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) {
|
||||
return // waits `Kobalt.versionCheckTimeout` before the next check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue