Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dfparker2002
Created January 16, 2019 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfparker2002/8cdd5ddbbc642697822b0d53c047a9b5 to your computer and use it in GitHub Desktop.
Save dfparker2002/8cdd5ddbbc642697822b0d53c047a9b5 to your computer and use it in GitHub Desktop.
CompletableFuture @ Adobe HTTP Client ex
/*
Adobe HTTP Client ex: https://stackoverflow.com/questions/37434906/how-do-i-get-a-completablefuturet-from-an-async-http-client-request#37437643
*/
CompletableFuture<Response> f = asyncHttpClient
.prepareGet("http://api.football-data.org/v1/soccerseasons/398")
.execute()
.toCompletableFuture();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment