async def await_event(self, event=None, timeout=None):
if self.event_future is not None:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>result = await asyncio.wait_for(self._wait_loop(event), timeout)<EOL>return result<EOL>
Wait for any or specified event