fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

Allow user to specify scheduled executor service for constructing delayed futures

Open alecgrieser opened this issue 5 months ago • 0 comments

The MoreAsyncUtil utility currently uses a statically defined ScheduledThreadPoolExecutor in order to schedule work efficiently. However, some users may want to have a little more control over how the executor that is used for constructing those delayed futures, e.g., to control the number of threads that are constructed. The most straightforward way to fix this would be to add a ScheduledExecutorService as an additional parameter to MoreAsyncUtil::delayedFuture and then make use of that in other places.

alecgrieser avatar Sep 26 '24 13:09 alecgrieser