Skip to content

Commit

Permalink
docs: imaplib: note: Idler objects require 'with'
Browse files Browse the repository at this point in the history
  • Loading branch information
foresto committed Dec 9, 2024
1 parent ae74499 commit 92d7ce7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ An :class:`IMAP4` instance has the following methods:
advised not to use :meth:`Idler.burst() <imaplib.IMAP4.Idler.burst>`
with an :class:`IMAP4_stream` connection on Windows.

.. note::

The :class:`!Idler` object returned by :meth:`IMAP4.idle` is usable only
within a :keyword:`with` statement. To retrieve unsolicited IMAP
responses outside that context, see :meth:`IMAP4.response`.

.. note::

The :class:`!Idler` class name and structure are internal interfaces,
Expand Down

0 comments on commit 92d7ce7

Please sign in to comment.