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

ruby - re-try logic in a simple loop -

ruby - Accessing variable name -

c# - Error in creating twitterizer app in asp.net -