#pragma once #include namespace DB { /// High-order function to run callbacks (functions with 'void()' signature) somewhere asynchronously using CallbackRunner = std::function)>; /// Creates CallbackRunner that runs every callback with 'pool->scheduleOrThrow()' CallbackRunner threadPoolCallbackRunner(ThreadPool & pool); }