Stopping Threads the Right Way in Modern C++

A Deep Dive into Cooperative Cancellation and std::jthread in C++20