[#BloombergLP-ball-AsyncFileObserver-2destructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AsyncFileObserver.adoc[AsyncFileObserver]::&#126;AsyncFileObserver
:relfileprefix: ../../../
:mrdocs:

Destroy this observer after draining and stopping publication&period;

== Synopsis

Declared in `&lt;ball&lowbar;asyncfileobserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
&#126;AsyncFileObserver() override;
----

== Description

Publish all records that were on the record queue upon entry if a publication thread is running, stop the publication thread (if any), close the log file if file logging is enabled, and destroy this async file observer&period;


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