[#bsl-stop_callback-06-2destructor]
= xref:bsl.adoc[bsl]::xref:bsl/stop_callback-06.adoc[stop&lowbar;callback]::&#126;stop&lowbar;callback
:relfileprefix: ../../
:mrdocs:

Destroy this object and deregister the callback if needed&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stoptoken&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&#126;stop&lowbar;callback();
----

== Description

If `&ast;this` refers to a stop state and the stored callback is registered with the stop state but has not yet begun execution, deregister the callback from that stop state&period; Otherwise, if the callback is executing on a thread other than the thread invoking the destructor, the completion of the callback strongly happens before the destructor returns&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
