CompletionStage

Sam Pullara spullara at gmail.com
Mon Jul 1 09:38:21 PDT 2013


On Jul 1, 2013, at 9:31 AM, Doug Lea <dl at cs.oswego.edu> wrote:
> Automatically cancelling the "other" in thenCombine and related
> methods would not be universally popular, but we now have a
> good answer for this! Feel free to create your own CompletionStage
> implementation that does so. Sound good?

It is nice that I can put my Promise under the interface. Not sure how many people will type their APIs that way.

> In other news, I think that with the multi-use onCompletion,
> plus allowing all three (plain, async, custom) of handle,
> we need to get rid of the problematic "exceptionally"
> method. A few people will be unhappy, but better than
> living with complaints about its javac-won't-let-me-rethrow
> problems for years.

As long as there is still at least one method that lets you transform an exception to a value, that makes sense to me.

Sam



More information about the lambda-libs-spec-observers mailing list