I need to run a function through a Thread only so I'm not sure how to retrieve the return from this function. Here's an example of how I want to do it:
from threading import Thread
import time
def teste_thread():
for k in range(5):
print('Executando Thread')
time.sleep(1)
return 'Thread Executada com sucesso!' #Como faço para pegar esse retorno de função?
t = Thread(target=teste_thread)
t.start()
print('Isso foi colocado depois do inicio da Thread')