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

Async-Await methods #13534

Closed
Meemaw opened this issue Nov 28, 2020 · 3 comments
Closed

Async-Await methods #13534

Meemaw opened this issue Nov 28, 2020 · 3 comments
Labels
kind/enhancement New feature or request triage/duplicate This issue or pull request already exists triage/needs-triage

Comments

@Meemaw
Copy link

Meemaw commented Nov 28, 2020

Description
Quarkus code seems to be highly async. As this has obvious advantages, there is also one major disadvantage:

  • Code can quickly become unreadable and convoluted in some non-trivial scenarios

In those scenarios Aync-Await paradigm could be a more readable alternative. https://github.com/electronicarts/ea-async is a library that allows programmers to write asynchronous code in a sequential fashion. Unfortunately, it doesn't seem to be maintained anymore and it only supports JDK 8-10. It is also questionable if it works with Quarkus at all (haven't tried it TBH).

Proposal
Expose such/similar utility from Quarkus (either core or an extension) that would allow to write asynchronous code in a sequential fashion.

Let me know if this request does not make sense at all or if it's for some reason not possible.

Edit: seems to have been already mentioned in #1957

@Meemaw Meemaw added the kind/enhancement New feature or request label Nov 28, 2020
@ghost ghost added the triage/needs-triage label Nov 28, 2020
@geoand
Copy link
Contributor

geoand commented Nov 30, 2020

I know @FroMage has input on this

@FroMage
Copy link
Member

FroMage commented Nov 30, 2020

Yeah, that project didn't work in native back when I tried it, but recent graalvm improvements might have changed that. It was however much less versatile/useful than Quasar, which is what the JDK Loom work is based on. Perhaps you can try EA-Async with the latest native-image and let us know if it works now?

@geoand
Copy link
Contributor

geoand commented Aug 3, 2021

Closing as a duplicate of #1957

@geoand geoand closed this as completed Aug 3, 2021
@geoand geoand added triage/duplicate This issue or pull request already exists triage/needs-triage labels Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request triage/duplicate This issue or pull request already exists triage/needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants