[concurrency-interest] Executors: Wrapper to cancel tasks in shutdownNow()?

Bryan Thompson bryan at systap.com
Wed Apr 14 09:53:09 EDT 2010


Hello,

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.

Thanks,
Bryan


More information about the Concurrency-interest mailing list