Use CompletionService to replace ExecutorSerive in the method org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.submit(Callable<T>) [SPR-17219] #21752
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qudh1 opened SPR-17219 and commented
The CompletionService is basically a Queue which returns the Futures in the order which they complete.It would be better to use CompletionService to replace ExecutorSerive in the method org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.submit(Callable<T>).
Current code is
Code implement by CompletionService is
Affects: 5.0.8
Referenced from: pull request #1945
The text was updated successfully, but these errors were encountered: