Asynchronous threading using python -


i learning multithreading in python , don't understand why thread isn't acting asynchronous.

here code.

def send_email():     ....  thread1 = threading.thread(name='thread1',target=send_email) thread1.start() return 'email sent' 

i don't understand why, thread1 waiting until target completed , coming next line.

need understanding this.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -