ThreadPoolTaskExecutor should cancel all remaining Future handles on shutdown [SPR-16607] #21148
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Nicolas Labrot opened SPR-16607 and commented
ThreadPoolTaskExecutor#submitListenable
returns a future that will not be canceled when the executor isshutdown
. By consequenceFuture#get
will block indefinitely.I would like to propose that the list of
Runnable
returned bythis.executor.shutdownNow();
is used to cancel theListenableFuture
.Affects: 5.0.4
Issue Links:
Referenced from: commits 3c1adf7, 9939908
The text was updated successfully, but these errors were encountered: