Parameters
- wait
- Specifies whether to wait for the completion of outstanding transactions. true means wait if there are any outstanding transactions. In this state no new transactions are allowed to enqueue to or dequeue from this queue. false means return immediately either with a success or an error.