Should I pass any arguments to kws.connect() if I'm running it in infinite thread?

anonymous
t1 = threading.Thread(target=kws.connect)
OR
t1 = threading.Thread(target=kws.connect(threaded=True))

Which of this is correct?
  • Vivek
    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.
  • anonymous
    anonymous edited October 2018
    @Vivek 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.
Sign In or Register to comment.