std::jthread::operator=
Min standard notice:
If *this still has an associated running thread (i.e. joinable() == true), calls request_stop() followed by join(). Assigns the state of other to *this and sets other to a default constructed state.
# Declarations
std::jthread& operator=( std::jthread&& other ) noexcept;
(since C++20)
# Parameters
other: another jthread object to assign to this jthread object
# Return value
*this