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
Post a Comment