Provide custom BackgroundExecutorWrapper to pass thread locals

This commit is contained in:
Noemi Szemenyei committed 2022-03-10 16:57:56 +01:00
1 parent 914de92152
commit 336accf447
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++) {