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

Method idle

Lib/imaplib.py:675–685  ·  view source on GitHub ↗

Return an iterable IDLE context manager producing untagged responses. If the argument is not None, limit iteration to 'duration' seconds. with M.idle(duration=29 * 60) as idler: for typ, data in idler: print(typ, data) Note: 'duration' requires a

(self, duration=None)

Source from the content-addressed store, hash-verified

673
674
675 def idle(self, duration=None):
676 """Return an iterable IDLE context manager producing untagged responses.
677 If the argument is not None, limit iteration to 'duration' seconds.
678
679 with M.idle(duration=29 * 60) as idler:
680 for typ, data in idler:
681 print(typ, data)
682
683 Note: 'duration' requires a socket connection (not IMAP4_stream).
684 """
685 return Idler(self, duration)
686
687
688 def list(self, directory='""', pattern='*'):

Callers 5

test_idle_capabilityMethod · 0.80
test_idle_deniedMethod · 0.80
test_idle_iterMethod · 0.80
test_idle_burstMethod · 0.80

Calls 1

IdlerClass · 0.85

Tested by 5

test_idle_capabilityMethod · 0.64
test_idle_deniedMethod · 0.64
test_idle_iterMethod · 0.64
test_idle_burstMethod · 0.64