[#BloombergLP-ball-AsyncFileObserver-shutdownPublicationThread]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AsyncFileObserver.adoc[AsyncFileObserver]::shutdownPublicationThread
:relfileprefix: ../../../
:mrdocs:

Stop the publication thread without waiting for log records currently on the record queue to be published&period; Return 0 on success, and a non&hyphen;zero value if there is an error joining the publication thread&period; Note that log records received by the `publish` method will continue to be added to the queue after the publication thread is shut down&period;

== Synopsis

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

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


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