why not both Future and CompletionHandler?

Rémi Forax forax at univ-mlv.fr
Thu Apr 14 10:09:07 PDT 2011


On 04/14/2011 07:01 PM, Alan Bateman wrote:
> Rémi Forax wrote:
>>
>> Or if I want to use a completion handler but have also a way to 
>> cancel the operation.
> Yes, and that was noted at the time [1] but isn't really much of a 
> concern because canceling specific I/O operations usually doesn't make 
> sense (and just isn't feasible everywhere anyway).
>
> -Alan
>
> [1] http://bugs.sun.com/view_bug.do?bug_id=6842687

So in that case, the idea of Wolfgang of CompletionFuture seems the good one
and methods that returns a Future aren't needed anymore.

Rémi



More information about the nio-dev mailing list