Skip to content
New issue

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

Add Future eventually method with a supplier of future and deprecate the method with a function #4827

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

vietj
Copy link
Member

@vietj vietj commented Aug 31, 2023

The Vertx Future#eventually method takes as parameter a Function<Void, Future<T>>, this was developed for codegen which did not support Supplier. The Future object is not code generated anymore since Vert.x 4, we can therefore use Supplier which is more suitable.

Add Future#eventually(Supplier<Future<T>>) and deprecate Future#eventually(Function<Void, Future<T>>) for removal in Vert.x 5.

The method is defined as a default method of Future and therefore all Future implementations will have it automatically.

…, Future<T>>, this was developed for codegen which did not support Supplier. The Future object is not code generated anymore since Vert.x 4, we can therefore use Supplier which is more suitable.

Add Future#eventually(Supplier<Future<T>>) and deprecate Future#eventually(Function<Void, Future<T>>) for removal in Vert.x 5.

The method is defined as a default method of Future and therefore all Future implementations will have it automatically.
@vietj vietj added this to the 4.4.6 milestone Aug 31, 2023
@vietj vietj self-assigned this Aug 31, 2023
@vietj vietj merged commit c15ee60 into 4.x Aug 31, 2023
6 checks passed
@vietj vietj deleted the future-eventually-supplier-deprecation branch August 31, 2023 11:37
@vietj vietj modified the milestones: 4.4.6, 4.5.0 Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant