[#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. Return 0 on success, and a non‐zero value if there is an error joining the publication thread. Note that log records received by the `publish` method will continue to be added to the queue after the publication thread is shut down. == Synopsis Declared in `<ball_asyncfileobserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int shutdownPublicationThread(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#