It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Should I pass any arguments to kws.connect() if I'm running it in infinite thread?
t1 = threading.Thread(target=kws.connect)
t1 = threading.Thread(target=kws.connect(threaded=True))
Which of this is correct?
If you are running your own thread then you don't have to pass `threaded=True`. I would suggest you to do `kws.connect(threaded=True)` which will create a thread in background and run it. With auto reconnect ticker will always be connected.
edited October 2018
thank you! But if I did just `kws.connect(threaded=True)`and proceeded to start other threads like `t2 = threading.Thread(target=function)` after `kws.connect(threaded=True)`, wouldn't they get blocked?
Sorry if that's a stupid question, I'm not very comfortable with python.