[concurrency-interest] CallerRunsOrRejects for JDK8?
aleksey.shipilev at gmail.com
Mon May 21 13:19:09 EDT 2012
On Sat, May 12, 2012 at 8:05 PM, √iktor Ҡlang <viktor.klang at gmail.com> wrote:
> As a sidenote, it'd be nice to have an AsyncExecutor, which is never allowed
> to do caller-runs at all. Some code might rely on the block not being
> executed on submission.
I had always had a feeling this is the difference between
Executor.execute() and ExecutorService.submit(). submit() should not
allow to do caller-runs unless explicitly told so by rejection policy.
I would anticipate lots of people are betting on that.
More information about the Concurrency-interest