[#bsl-stop_token-stop_possible] = xref:bsl.adoc[bsl]::xref:bsl/stop_token.adoc[stop_token]::stop_possible :relfileprefix: ../../ :mrdocs: Return `true` if `*this` refers to a stop state, and either a stop was already requested on that stop state or there is at least one `stop_source` object that refers to that stop state (implying that a stop could still be requested using the `request_stop` function), and `false` otherwise. A call to `stop_possible` that is potentially concurrent with a call to `stop_requested` or `stop_possible` does not cause a data race. == Synopsis Declared in `<bslstl_stoptoken.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool stop_possible() 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]#