9#include <userver/utils/function_ref.hpp>
11USERVER_NAMESPACE_BEGIN
16struct TaskProcessorPoolsConfig
final {
17 std::size_t initial_coro_pool_size = 10;
18 std::size_t max_coro_pool_size = 100;
19 std::size_t coro_stack_size = 256 * 1024ULL;
20 std::size_t ev_threads_num = 1;
21 std::string ev_thread_name =
"ev";
22 bool ev_default_loop_disabled =
false;
39void RunStandalone(std::size_t worker_threads, utils::function_ref<
void()> payload);
43 std::size_t worker_threads,
44 const TaskProcessorPoolsConfig& config,
45 utils::function_ref<
void()> payload