From 632b7b4afe290d533189eff27482a43aec816076 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 28 Feb 2015 14:04:42 +0100 Subject: XMLStream: add a forever parameter to process(), defaulting to True, to select whether we want to stop the event loop after a disconnection --- docs/using_asyncio.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/using_asyncio.rst') diff --git a/docs/using_asyncio.rst b/docs/using_asyncio.rst index c84148e8..55ed7679 100644 --- a/docs/using_asyncio.rst +++ b/docs/using_asyncio.rst @@ -53,7 +53,8 @@ Running the event loop :meth:`.XMLStream.process` is only a thin wrapper on top of ``loop.run_forever()`` (if ``timeout`` is provided then it will -only run for this amount of time). +only run for this amount of time, and if ``forever`` is False it will +run until disconnection). Therefore you can handle the event loop in any way you like instead of using ``process()``. -- cgit v1.2.3