[concurrency-interest] CompletionStage.handle() with function returning CompletionStage
pettermahlen at gmail.com
Fri Feb 12 03:36:57 EST 2016
One thing that I and my colleagues have felt is missing in CompletionStage
is a version of handle() (and exceptionally()) taking a function that
returns a CompletionStage<U> (or T) instead of a plain U. This is
particularly useful when doing things like fallbacks or retries for remote
We've implemented those methods ourselves, calling them 'handleCompose' and
but of course using a static method like that reads less well than the
normal fluent API.
What is the rationale for not including those versions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest