[concurrency-interest] Accessing original callable object from a Future?
martinrb at google.com
Mon Jun 23 21:45:35 EDT 2014
There is nothing in java.util.concurrent to make this easier. Future in
general is not associated with any task, so there is no API there to help
you. FutureTask *is* associated with a task, but it tries hard to forget
about it once it reaches the "done" state, to make the memory reclaimable.
On Mon, Jun 23, 2014 at 4:41 PM, Kevin Regan <regank at google.com> wrote:
> Sometimes, I find the need to be able to access the original Callable
> object from a Future. It seems like this requires the a keep a map from
> Future to the original Callable value (and assuming that
> ExecutionCompletionService returns the same Future in take() as in
> Has there been any thought into possibly making this task easier?
> Possibly some way of connecting some identifying information with the
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest