fdb-record-layer
fdb-record-layer copied to clipboard
Allow user to specify scheduled executor service for constructing delayed futures
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.