Skip to content

Add module example and CompletableFuture usage demo to Readme.md #1206

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

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

fmcarvalho
Copy link
Contributor

No description provided.

Alternatively you may use continuations (through Java 8 class `CompletableFuture<T>`) to accomplish asynchronous (non-blocking) solution. The equivalent continuation approach to the previous example is:

```java
import org.asynchttpclient.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

import static org.asynchttpclient.Dsl.*;

@slandelle
Copy link
Contributor

Could you please address comments and then rebase your commits?

@slandelle slandelle merged commit 47cfb46 into AsyncHttpClient:master Oct 5, 2016
@slandelle
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants