[Python-checkins] peps: Add run_forever().

guido.van.rossum python-checkins at python.org
Thu Dec 20 22:48:29 CET 2012


http://hg.python.org/peps/rev/4f4616e62304
changeset:   4626:4f4616e62304
user:        Guido van Rossum <guido at google.com>
date:        Thu Dec 20 13:48:24 2012 -0800
summary:
  Add run_forever().

files:
  pep-3156.txt |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -171,7 +171,7 @@
   Note: if you schedule a call with ``call_repeatedly()``, ``run()``
   will not exit until you cancel it.
 
-  TBD: A method to run the loop forever, i.e. until ``stop()`` is called?
+  TBD: How many variants of this do we really need?
 
 - ``stop()``.  Stops the event loop as soon as it is convenient.  It
   is fine to restart the loop with ``run()`` (or one of its variants)
@@ -182,6 +182,8 @@
   called must still be run, but callbacks scheduled after it is called
   (or scheduled to be run later) will not be run.
 
+- ``run_forever()``.  Runs the event loop until ``stop()`` is called.
+
 - ``run_until_complete(future, timeout=None)``.  Runs the event loop
   until the Future is done.  If a timeout is given, it waits at most
   that long.  If the Future is done, its result is returned, or its

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list