<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_send(self, timeout = None):
 		"""Wait until all queued messages are sent."""

		self._send_queue_cleared.clear()
		self._send_queue_cleared.wait(timeout = timeout)