(self)
| 1575 | return resp |
| 1576 | |
| 1577 | def __next__(self): |
| 1578 | imap = self._imap |
| 1579 | |
| 1580 | if self._duration is None: |
| 1581 | timeout = None |
| 1582 | else: |
| 1583 | timeout = self._deadline - time.monotonic() |
| 1584 | typ, data = self._pop(timeout) |
| 1585 | |
| 1586 | if not typ: |
| 1587 | if __debug__ and imap.debug >= 4: |
| 1588 | imap._mesg('idle iterator exhausted') |
| 1589 | raise StopIteration |
| 1590 | |
| 1591 | return typ, data |
| 1592 | |
| 1593 | def burst(self, interval=0.1): |
| 1594 | """Yield a burst of responses no more than 'interval' seconds apart. |