Skip to content

Commit

Permalink
Reduce keep alive time of thread pool to 100ms (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: Karthik Ramgopal <[email protected]>
  • Loading branch information
karthikrg and li-kramgopa authored Jan 23, 2024
1 parent 8b490a1 commit b0e0a27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class StreamUtil {
* sane values for parallelism to avoid spawning a crazy number of concurrent threads.
*/
private static final ExecutorService WORK_EXECUTOR =
new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, TimeUnit.SECONDS, new SynchronousQueue<>());
new ThreadPoolExecutor(0, Integer.MAX_VALUE, 100, TimeUnit.MILLISECONDS, new SynchronousQueue<>());

private StreamUtil() {
// Disallow external instantiation.
Expand Down

0 comments on commit b0e0a27

Please sign in to comment.