[concurrency-interest] Canceling Futures - Callable implementations
peter.kovacs.1.0rc at gmail.com
Tue Apr 7 03:04:50 EDT 2009
How will a Callable implementation know that the corresponding Future
has been canceled?
One mechanism I am aware of is thread interruption, but practice shows
that relying on this mechanism is highly unsafe. For interruption
checks to work safely, everyone up the call stack would have to
observe the related protocol, which is rarely the case.
Is there anything else in place for this purpose? If there is not,
wouldn't it be reasonable to provide a "useful" default implementation
of Callable -- along the lines of FutureTask being an implementation
More information about the Concurrency-interest