[#BloombergLP-bdlmt-MultiQueueThreadPool-drain] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::drain :relfileprefix: ../../../ :mrdocs: Wait until all queues are empty. This method waits until all non‐paused queues are empty without disabling the queues (and may thus wait indefinitely). The queues and/or the thread pool may be either enabled or disabled when this method is called. This method may be called on a stopped or started thread pool. Note that `drain` does not attempt to delete queues directly. However, as a side‐effect of emptying all queues, any queue for which `deleteQueue` was called previously will be deleted before `drain` returns. Note also that this method waits by repeatedly yielding. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void drain(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#