wait_for_ending
wait_for_ending
Wait until the call state reaches ending. Returns immediately if the call
is already ending or has moved past it (ended). A typed convenience over
wait_for() on the calling.call.state event.
Parameters
timeout
Maximum seconds to wait. Raises asyncio.TimeoutError if exceeded. None
waits indefinitely.
Returns
RelayEvent — The state event. When the call was already at or past the target, event.params["call_state"] holds the current state.