MCPcopy Index your code
hub / github.com/RustPython/RustPython / __next__

Method __next__

Lib/imaplib.py:1578–1592  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

_popMethod · 0.95
_mesgMethod · 0.80

Tested by

no test coverage detected