AsynchronousChannel.close()

Alan Bateman Alan.Bateman at Sun.COM
Thu Jun 25 07:25:46 PDT 2009


Gili wrote:
> Okay, this is what I thought at first. What threw me off is... how can
> multiple threads be waiting on the result of the same I/O operation?
>   
It would be unusual, but in theory you could have several threads 
blocked on the Future's get method waiting for the result. If you call 
the cancel method then they will all throw CancellationException.

-Alan.



More information about the nio-discuss mailing list