Yield a burst of responses no more than interval seconds apart (expressed as an int or float).
>>> with M.idle() as idler: ... # get a response and any others following by < 0.1 seconds ... batch = list(idler.burst()) ... print(f'processing {len(batch)} responses...') ... print(batch) ... processing 3 responses... [('EXPUNGE', [b'2']), ('EXPUNGE', [b'1']), ('RECENT', [b'0'])]
imaplib/IMAP4.Idler.burst
IMAP4.Idler.burst