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

Adds support for async on @ExecuteOn methods #9551

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

spericas
Copy link
Member

@spericas spericas commented Dec 3, 2024

Description

Adds support for async on @ExecuteOn methods. Issue #9539.

Documentation

Has been updated.

@spericas spericas added enhancement New feature or request 4.x Version 4.x labels Dec 3, 2024
@spericas spericas added this to the 4.1.5 milestone Dec 3, 2024
@spericas spericas self-assigned this Dec 3, 2024
@spericas spericas marked this pull request as draft December 3, 2024 15:38
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 3, 2024
Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas requested a review from danielkec December 4, 2024 14:24
@spericas spericas marked this pull request as ready for review December 4, 2024 14:24
@barchetta barchetta mentioned this pull request Dec 4, 2024
17 tasks
Copy link
Contributor

@danielkec danielkec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

Comment on lines +149 to +155
// if resultFuture is cancelled, then cancel supplyFuture
resultFuture.exceptionally(t -> {
if (t instanceof CancellationException) {
supplyFuture.cancel(mayInterrupt.get());
}
return null;
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a shame thenCompose doesn't propagate cancel

@spericas spericas merged commit 56985e6 into helidon-io:main Dec 5, 2024
46 checks passed
barchetta pushed a commit to barchetta/helidon that referenced this pull request Dec 5, 2024
* Adds support for async on @ExecuteOn methods.

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>

* New test that verifies correct unwrapping of exceptions.

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>

---------

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
barchetta added a commit that referenced this pull request Dec 5, 2024
* Adds support for async on @ExecuteOn methods.
* New test that verifies correct unwrapping of exceptions.
---------
Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
Co-authored-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
arjav-desai pushed a commit to arjav-desai/helidon that referenced this pull request Dec 11, 2024
* Adds support for async on @ExecuteOn methods.

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>

* New test that verifies correct unwrapping of exceptions.

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>

---------

Signed-off-by: Santiago Pericas-Geertsen <santiago.pericasgeertsen@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x enhancement New feature or request OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants