6#include <userver/components/component_base.hpp>
7#include <userver/engine/task/single_threaded_task_processors_pool.hpp>
8#include <userver/engine/task/task_processor_fwd.hpp>
13USERVER_NAMESPACE_BEGIN
16struct TaskProcessorConfig;
32class SingleThreadedTaskProcessors
final :
public ComponentBase {
36 static constexpr std::string_view
kName =
"single-threaded-task-processors";
38 SingleThreadedTaskProcessors(
const ComponentConfig& config,
const ComponentContext&);
40 ~SingleThreadedTaskProcessors()
override;
42 engine::SingleThreadedTaskProcessorsPool& GetPool() {
return pool_; }
44 static yaml_config::Schema GetStaticConfigSchema();
47 engine::SingleThreadedTaskProcessorsPool pool_;
51inline constexpr bool kHasValidate<SingleThreadedTaskProcessors> =
true;