Simple header-only library for processing tasks in thread pool written in c++20.
thread_pool::ThreadPool thread_pool;
auto task_1 = thread_pool.enqueue([](){ return 7; });
auto task_2 = thread_pool.enqueue([](){ return std::string("test"); });
std::cout << task_1.get() << "\n">; //7
std::cout << task_2.get() << "\n">; //test
MIT © Xert