[concurrency-interest] CompletableFuture.whenComplete survey

Doug Lea dl at cs.oswego.edu
Fri Dec 18 11:14:38 EST 2015


On 12/18/2015 10:57 AM, Tim Peierls wrote:
> I'm confused: whenComplete takes a BiConsumer, not a BiFunction, so it can't
> return a value. I can't get the survey question code to compile.

Sorry. The "return" with values should just say "return". They
don't get executed in the case in question.
Non-compilability is an accidental feature of the survey.

-Doug

>
> On Wed, Dec 16, 2015 at 8:00 PM, Doug Lea <dl at cs.oswego.edu
> <mailto:dl at cs.oswego.edu>> wrote:
>
>
>     Ever since Chris Purcell helpfully pointed out last summer that we
>     should not drop nested exceptions in whenComplete, we've stalled
>     incorporating changes. There are some good arguments for each of
>     two options, that affects only a single line of code.
>     (We've ruled out some other options.)
>
>     Even though this is a corner case issue with low impact, we'd like
>     to choose the best option we can. So please help us out by
>     responding to this SurveyMonkey survey before Saturday
>     morning (19 December).
>
>     https://www.surveymonkey.com/r/3D2L9DR
>
>     Thanks!
>
>     -Doug
>     _______________________________________________
>     Concurrency-interest mailing list
>     Concurrency-interest at cs.oswego.edu <mailto:Concurrency-interest at cs.oswego.edu>
>     http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>



More information about the Concurrency-interest mailing list