It looks like you're new here. If you want to get involved, click one of these buttons!
# Infinite loop on the main thread. Nothing after this will run.
# You have to use the pre-defined callbacks to manage subscriptions.
kws.connect()
I couldn't find the "infinite loop". Where is it? Can't find it in the method definition KiteTicker.connect().kws.connect(threaded=True)
, then it becomes a new thread and the main thread can be continued with more code right after the the kws.connect call. Implying that "Nothing after this will run" is no more valid.
1. kws.connect is basically a twisted event loop. Here is the "infinite loop" you are looking for. https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/base.py#L1264
2. Are you talking about the comment line on threaded ticker sample example? We will change it sometime. Thanks for the note.