Skip to content

Commit 23a7306

Browse files
committed
Change sample code in example 2
- AsyncHttpClient is an interface. Instantiate with concrete implementation instead.
1 parent 0f629d0 commit 23a7306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
4848
import org.asynchttpclient.*;
4949
import java.util.concurrent.Future;
5050

51-
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
51+
AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient();
5252
asyncHttpClient.prepareGet("http://www.example.com/").execute(new AsyncCompletionHandler<Response>(){
5353

5454
@Override

0 commit comments

Comments
 (0)