Skip to content

Use CompletableFutures for async update checking - #1

Merged
TechnicJelle merged 6 commits into
TechnicJelle:mainfrom
TBlueF:main
Nov 3, 2023
Merged

Use CompletableFutures for async update checking#1
TechnicJelle merged 6 commits into
TechnicJelle:mainfrom
TBlueF:main

Conversation

@TBlueF

@TBlueF TBlueF commented Oct 15, 2023

Copy link
Copy Markdown
Contributor

This PR removes the necessity of calling check() manually before logging the update-messages.
It also moves the async logic to a CompletableFuture to make sure that the actual check-call is only done once even if we call getLatestVersion() multiple times in quick succession. :)

@TBlueF

TBlueF commented Oct 15, 2023

Copy link
Copy Markdown
Contributor Author

Oh, i also removed the technicjelle.updatechecker.noasync option again, since it shouldn't be necessary anymore .. tell me if you still want to keep it ^^

@TechnicJelle
TechnicJelle self-requested a review October 22, 2023 20:21
@TechnicJelle

Copy link
Copy Markdown
Owner

Do you think the readme also needs to be updated with mentions of these new additions?

Comment thread src/main/java/com/technicjelle/UpdateChecker.java Outdated
@TechnicJelle
TechnicJelle merged commit 8c5deed into TechnicJelle:main Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants