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