[#bsl-stop_source-get_token] = xref:bsl.adoc[bsl]::xref:bsl/stop_source.adoc[stop_source]::get_token :relfileprefix: ../../ :mrdocs: Return a `stop_token` that refers to the stop state (or lack thereof) that `*this` refers to. == Synopsis Declared in `<bslstl_stoptoken.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:bsl/stop_token.adoc[stop_token] get_token() const noexcept; ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#