Alternatives to timesleep

Asked

Viewed 22 times

0

Good night! Whenever I use delay or the time.Leep my code simply hangs until the end of the run, as far as I read they do not work in parallel Is there a lib that has the same hold function but doesn’t interrupt the rest of the code??? The purpose of the code is to return a screen when the date is equal to the computer, but when the first entry is added it waits for the end of the execution(time) until it is possible to enter the second entry then the goal of calling the screen several times a day becomes unviable

example: I am a telemarketer call some people and they ask me to return the call later, I schedule them and when the time is needed I have the screens with the data of the same.

  • Could you clarify better what you want to do? If you should not stop the execution, why do you need to "wait"? You can put examples in the question of what you need to do?

  • If the idea is to run a code at a certain time, you can do what I answered in How to perform a task at a precise time in time?

  • but I could do it several times in the same day without breaking the initial Trigger and without crashing the Cod??

  • Creating multiple threads, yes.

  • acebai to test and it worked thank you very much

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.