...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
This function stops the threads as soon as possible. As a result of calling
stop(), pending function objects may be never be invoked.