Why shouldn't I use time.sleep()?

asked 2022-09-12 00:57:16 -0600

Og gravatar image

Hello all, I saw in many places that the usage of time.sleep() is strongly not recommended. Can someone please explain me why it's a problem and what can it do for the running? Moreover, shouldn't I use the time.sleep() in every place in my code or only in services/clients/publishers/subscribers or can I use it in some functions? Thank you in advance, the question

edit retag flag offensive close merge delete

Comments

You would need to offer a suggested piece of code where you think that shouldn't be used.

stevemacenski gravatar image stevemacenski  ( 2022-09-12 15:04:28 -0600 )edit