Return a stop_token that refers to the stop state (or lack thereof) that *this refers to.
stop_token
*this
Declared in <bslstl_stoptoken.h>
<bslstl_stoptoken.h>
[[nodiscard]] stop_token get_token() const noexcept;
The return value should not be discarded.