summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-08-04 21:49:32 -0700
committerNathan Fritz <fritzy@netflint.net>2011-08-04 21:49:32 -0700
commit7f90de887a7e3ca53103babf5a9acf15a69ab959 (patch)
tree2cffbf7669ffc6889510db60b3961ac238f7ed4b /sleekxmpp/basexmpp.py
parentcaec2976d7788dba75a82dfb9079b57c96ef7b47 (diff)
downloadslixmpp-7f90de887a7e3ca53103babf5a9acf15a69ab959.tar.gz
slixmpp-7f90de887a7e3ca53103babf5a9acf15a69ab959.tar.bz2
slixmpp-7f90de887a7e3ca53103babf5a9acf15a69ab959.tar.xz
slixmpp-7f90de887a7e3ca53103babf5a9acf15a69ab959.zip
added block as process option and updated documentation. added typical use example to ClientXMPP.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py24
1 files changed, 21 insertions, 3 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index b188e767..07726a41 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -140,10 +140,28 @@ class BaseXMPP(XMLStream):
def process(self, *args, **kwargs):
"""
- Ensure that plugin inter-dependencies are handled before starting
- event processing.
-
Overrides XMLStream.process.
+
+ Initialize the XML streams and begin processing events.
+
+ The number of threads used for processing stream events is determined
+ by HANDLER_THREADS.
+
+ Arguments:
+ block -- If block=False then event dispatcher will run
+ in a separate thread, allowing for the stream to be
+ used in the background for another application.
+ Otherwise, process(block=True) blocks the current thread.
+ Defaults to False.
+
+ **threaded is deprecated and included for API compatibility**
+ threaded -- If threaded=True then event dispatcher will run
+ in a separate thread, allowing for the stream to be
+ used in the background for another application.
+ Defaults to True.
+
+ Event handlers and the send queue will be threaded
+ regardless of these parameters.
"""
for name in self.plugin:
if not self.plugin[name].post_inited: