wait
Block until the message reaches a terminal state (delivered, undelivered, or
failed). Returns the terminal RelayEvent.
Raises asyncio.TimeoutError if timeout is specified and the message does not
reach a terminal state within the given duration.
Parameters
timeout
Maximum number of seconds to wait. None waits indefinitely.
Returns
RelayEvent — The event that caused the message to
reach its terminal state. Inspect message.state for the final state value.