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;
23 bool defer_events =
true;
41 utils::function_ref<
void()> payload);
45 const TaskProcessorPoolsConfig& config,
46 utils::function_ref<
void()> payload);