How to build a multi-threaded pipeline in C++ with std::async Check out my post on Medium about this code.