Consider refactoring cpp/src/neighbors/detail/dynamic_batching.cuh to have more separation between the batch runner class and the queue type by encapsulating commit and wait logic in the queue.
Originally posted by @tfeher in #261 (comment) #261 (comment) #261 (comment)