def running():
      "Prints a few dots on stdout while the reactor is running."
      sys.stdout.write("."); sys.stdout.flush()
      reactor.callLater(.1, running)
Prints a few dots on stdout while the reactor is running.
recipes/Python/439358_Twisted_blocking_functions_deferred/recipe-439358.py