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