bsl::stop_source::get_token

Return a stop_token that refers to the stop state (or lack thereof) that *this refers to.

Synopsis

Declared in <bslstl_stoptoken.h>

[[nodiscard]]
stop_token
get_token() const noexcept;

Return Value

NOTE

The return value should not be discarded.