[#BloombergLP-bdlmt-MultiQueueThreadPool_Queue-waitWhilePausing]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool_Queue.adoc[MultiQueueThreadPool&lowbar;Queue]::waitWhilePausing
:relfileprefix: ../../../
:mrdocs:

Wait until any currently&hyphen;executing job on the queue completes and the queue is paused&period; Note that pausing differs from `disable` in that (1) `pause` stops processing for a queue, and (2) does _not_ prevent additional jobs from being enqueued&period; The behavior of this method is undefined unless it is invoked after a successful `initiatePause` invocation&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

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


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