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

Show async behavior with CompletableFuture in examples/documentation #446

Closed
manuel-mauky opened this issue Oct 27, 2016 · 3 comments
Closed

Comments

@manuel-mauky
Copy link
Collaborator

We should provide an example of how to use CompletableFuture to implement async behavior.

@gtnarg
Copy link

gtnarg commented Oct 31, 2016

If you are able to add an unpolished example here (prior to closing this issue) it would be appreciated as I have a need for this :)

@manuel-mauky
Copy link
Collaborator Author

Hi,
I've added a small app with a backend service that simulates delays and sometimes "connection error".
In the frontend I've used CompletableFuture to handle async usage of the backend service and error handling.

Take a look at the example and tell me what you think.

@gtnarg
Copy link

gtnarg commented Nov 2, 2016

This is great - thank you very much for the quick response!

I will review and let you know if I have any questions or feedback.

@manuel-mauky manuel-mauky added this to the 1.6.0 milestone Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants