My requirement is after giving control to "thread_func", while loop should continue without wait for completion of "thread_func".
Please suggest me how to approach?
def thread_func(mySeries):
time.sleep(30)
print("first value is:: ", mySeries.iloc[0])
print("high value is:: ", mySeries.max())
print("low value is:: ", mySeries.min())
print("last value is:: ", mySeries.iloc[-1])
print("=" * 20)
def testfunc():
while True:
data = myfunc(loop_stop_flag,1)
mySeries = Series(data)
my_thread = Thread(target=thread_func(mySeries))
my_thread.daemon = True # Daemonize thread
my_thread.start() # Start the execution
stop_flag = False