Skip to content

Instantly share code, notes, and snippets.

@optician
Last active August 29, 2015 14:26
Show Gist options
  • Save optician/6bd05c454fc06bfeb0e4 to your computer and use it in GitHub Desktop.
Save optician/6bd05c454fc06bfeb0e4 to your computer and use it in GitHub Desktop.
Akka-http client sample
(Source.single(request -> 42) via Http().superPool() map {
case (Success(res), flag) => res.entity.toStrict(1 seconds).map(x => new String(x.data.toArray))
case (Failure(err), flag) => Future.failed(err)
}).mapAsyncUnordered(2)(???)
@optician
Copy link
Author

optician commented Aug 6, 2015

Does any way exist to retreive whole document without manual merge (toStrict + mapAsync)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment