Iterating collections and arrays in parallel by setting thread priority
Nov 17, 2021
Through the underlying configurable BackgroundExecutor the IterableObjectHelper component is able to iterate a collection or an array in parallel and execute an action on each iterated item giving also the ability to set the threads priority.
Before starting to use this component we need to add the following dependency to our pom.xml:
… And now let’s see the code:
For more articles about Burningwave Core you can go to the main page.