[concurrency-interest] Executors: Wrapper to cancel tasks in shutdownNow()?
bryan at systap.com
Wed Apr 14 10:42:51 EDT 2010
Yes, but threads can already be waiting on their Future's, right? Bryan
From: tpeierls at gmail.com [mailto:tpeierls at gmail.com] On Behalf Of Tim Peierls
Sent: Wednesday, April 14, 2010 10:42 AM
To: Bryan Thompson
Cc: concurrency-interest at cs.oswego.edu
Subject: Re: [concurrency-interest] Executors: Wrapper to cancel tasks in shutdownNow()?
The tasks returned by shutdownNow haven't begun execution, so there's no need to cancel them.
On Wed, Apr 14, 2010 at 9:53 AM, Bryan Thompson <bryan at systap.com<mailto:bryan at systap.com>> wrote:
Is there some handy delegation pattern available, such as found on Executors, to wrap an ExecutorService implementation such that ExecutorService#shutdownNow() cancels each task in the returned list? While this might not always be want people want to do, it does seem to be a very common pattern.
Concurrency-interest mailing list
Concurrency-interest at cs.oswego.edu<mailto:Concurrency-interest at cs.oswego.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest