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

Method serve_forever

Lib/test/test_logging.py:912–921  ·  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

910 t.start()
911
912 def serve_forever(self, poll_interval):
913 """
914 Run the :mod:`asyncore` loop until normal termination
915 conditions arise.
916 :param poll_interval: The interval, in seconds, used in the underlying
917 :func:`select` or :func:`poll` call by
918 :func:`asyncore.loop`.
919 """
920 while not self._quit:
921 asyncore.loop(poll_interval, map=self._map, count=1)
922
923 def stop(self):
924 """

Callers

nothing calls this directly

Calls 1

loopMethod · 0.45

Tested by

no test coverage detected