Untitled

 avatar
wyc1230
plain_text
a month ago
480 B
3
Indexable
List<Future<Void>> futures = batchInfoList.stream()
        .map(batchInfo -> threadPoolExecutor.submit(() -> {
            callOutboundCreateBatchApi(
                    context.getProcessPath(),
                    context.getNow(),
                    Lists.newArrayList(batchInfo),
                    context.getTraceId()
            );
            return null; // Explicitly return null to match Callable<Void>
        }))
        .collect(Collectors.toList());
Leave a Comment