Lazily initialize Executor in ScheduledDataLoaderRegistry builder by kilink · Pull Request #135 · graphql-java/java-dataloader
Calling ScheduledDataLoaderRegistry.newScheduledRegistry would create a new ScheduledExecutorService on every call, regardless of whether a custom one was supplied. Move creation of the default ScheduledExecutorService from the builder field to the build method to avoid the issue.
approved these changes Nov 12, 2023
kilink
deleted the
lazy-init-executor
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters