Provide custom BackgroundExecutorWrapper to pass thread locals

(cherry picked from commit 336accf447)
This commit is contained in:
Noemi Szemenyei committed 2022-03-11 13:31:50 +01:00
1 parent 75662aac5c
commit 3c7555de36
8 files changed
+307 -50

No files matched your search

@@ -31,7 +31,7 @@ class DaemonExecutorServiceTest {
@Test
void submit_via_DefaultBackgroundExecutor() throws Exception {
DefaultBackgroundExecutor des = new DefaultBackgroundExecutor(1, 5, "junk");
DefaultBackgroundExecutor des = new DefaultBackgroundExecutor(1, 5, "junk", null);
long start = System.currentTimeMillis();
List<Future<?>> futures = new ArrayList<>();
for (int i = 0; i < count; i++) {