I have some difficulties into making this function running in the background without blocking my entire program, how can I run that function in loop, without blocking my entire program? This is the function: while True: schedule.run_pending()
Thank you for any reply.
Edit:
def FunctioninLoop():
while True:
schedule.run_pending()
async def MyFunction():
ScheduleToexecute=schedule.every().minute.do(Functionscheduled)
t = Thread(target=FunctioninLoop())
t.start()
print("The execution is going on")
multiprocessing?