C++20 brought in some nice features, unfortunately some of them are quite unstable and incomplete (looking at you “modules”), nevertheless some of them are quite complete and helpful. Today we will take a look at std::jthread, also know as “joining thread”. This new threading abstraction is almost similar with its older brother std::thread, but unlike it it provides some neat features such as: automatic join on destruction and a mechanism that allows one to request a stop.