CompletionStage

Doug Lea dl at cs.oswego.edu
Mon Jul 1 11:54:10 PDT 2013


On 07/01/13 12:38, Sam Pullara wrote:

>> 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.
>

Yes. onCompletion renamed as whenComplete (which might have been your
original suggestion?!) preserves outcome, handle can
transform it. They make a perfect pair.

I'm about to claim success for now and move to next phase.
Stay tuned for c-i post.

-Doug




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