We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsyncLoader can be useful in the following situations.
AsyncLoader
resolv.conf
We already have an implementation for that. However, I hope to generalize it and add new features to use it in various cases.
armeria/oauth2/src/main/java/com/linecorp/armeria/client/auth/oauth2/AbstractOAuth2AuthorizationGrant.java
Lines 118 to 134 in 4bfa172
API proposal:
@FunctionalInterface interface AsyncLoader<T> { static <T> AsyncLoaderBuilder<T> builder(Supplier<CompletableFuture<T>> loader) { return new AsyncLoaderBuilder<T>(loader); } CompletableFuture<T> get(); } class AsyncLoaderBuilder<T> { AsyncLoaderBuilder<T> expireAfterLoad(Duration duration) { ... } AsyncLoaderBuilder<T> expireIf(Predicate<T> predicate) { ... } }
The text was updated successfully, but these errors were encountered:
oh interesting feature! may I handle this? I'll create PR within 4/22 🙇
Sorry, something went wrong.
Add AsyncLoader to load and update value periodically
cf8056a
Fixes line#5506.
e050aaa
Create PR #5590 :)
Successfully merging a pull request may close this issue.
AsyncLoader
can be useful in the following situations.resolv.conf
.We already have an implementation for that. However, I hope to generalize it and add new features to use it in various cases.
armeria/oauth2/src/main/java/com/linecorp/armeria/client/auth/oauth2/AbstractOAuth2AuthorizationGrant.java
Lines 118 to 134 in 4bfa172
API proposal:
The text was updated successfully, but these errors were encountered: