private function waitForConfirmations() { try { $this->channel->wait_for_pending_acks($this->getTerminalProperty('publisherAckTimeout')); } catch (\Exception $ex) { throw new EventPublicationFailedException("Failed to receive acknowledgements for all events"); } }