[#BloombergLP-bslmt-OnceGuard-cancel]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/OnceGuard.adoc[OnceGuard]::cancel
:relfileprefix: ../../../
:mrdocs:

If this object is in the &quot;in&hyphen;progress&quot; state, call `cancel` on the associated `Once` object and exit the &quot;in&hyphen;progress&quot; state&period; Otherwise, do nothing&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;once&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
cancel();
----


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