MCPcopy Index your code
hub / github.com/python/cpython / serve_forever

Method serve_forever

Lib/test/test_logging.py:925–934  ·  view source on GitHub ↗

Run the :mod:`asyncore` loop until normal termination conditions arise. :param poll_interval: The interval, in seconds, used in the underlying :func:`select` or :func:`poll` call by :func:`asyncore.loop`.

(self, poll_interval)

Source from the content-addressed store, hash-verified

923 t.start()
924
925 def serve_forever(self, poll_interval):
926 """
927 Run the :mod:`asyncore` loop until normal termination
928 conditions arise.
929 :param poll_interval: The interval, in seconds, used in the underlying
930 :func:`select` or :func:`poll` call by
931 :func:`asyncore.loop`.
932 """
933 while not self._quit:
934 asyncore.loop(poll_interval, map=self._map, count=1)
935
936 def stop(self):
937 """

Callers

nothing calls this directly

Calls 1

loopMethod · 0.45

Tested by

no test coverage detected