6#include <userver/engine/task/task_processor_fwd.hpp>
12struct TaskProcessorConfig;
14class SingleThreadedTaskProcessorsPool
final {
18 explicit SingleThreadedTaskProcessorsPool(
const engine::TaskProcessorConfig& config_base);
19 ~SingleThreadedTaskProcessorsPool();
21 size_t GetSize()
const noexcept {
return processors_.size(); }
22 engine::TaskProcessor& At(size_t idx) {
return *processors_.at(idx); }
25 static SingleThreadedTaskProcessorsPool MakeForTests(std::size_t worker_threads);
28 std::vector<std::unique_ptr<engine::TaskProcessor>> processors_;