mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
5f2fc67c40
The callback will be a stream level handler, and will not execute in its own thread. If you must have a thread, have the callback function raise a custom event, which can be processed by another event handler, which may run in an individual thread, like so: def handle_reply(self, iq): self.event('custom_event', iq) def do_long_operation_in_thread(self, iq): ... self.add_event_handler('custom_event', self.do_long_operation_in_thread) ...take out already prepared iq stanza... iq.send(callback=self.handle_reply) |
||
---|---|---|
.. | ||
__init__.py | ||
live_multiple_streams.py | ||
live_test.py | ||
test_events.py | ||
test_jid.py | ||
test_stanza_base.py | ||
test_stanza_element.py | ||
test_stanza_error.py | ||
test_stanza_gmail.py | ||
test_stanza_iq.py | ||
test_stanza_message.py | ||
test_stanza_presence.py | ||
test_stanza_roster.py | ||
test_stanza_xep_0004.py | ||
test_stanza_xep_0030.py | ||
test_stanza_xep_0033.py | ||
test_stanza_xep_0060.py | ||
test_stanza_xep_0085.py | ||
test_stream.py | ||
test_stream_exceptions.py | ||
test_stream_handlers.py | ||
test_stream_presence.py | ||
test_stream_roster.py | ||
test_stream_xep_0030.py | ||
test_tostring.py |