Why is the sleep method (for sleeping a thread for some time) stored in the time-module and not in the threading-module (like in java).
I mean, is it not much more related to thread?
Sleep method in time
module is derived from *nix sleep
function (in unistd.h). It's not more thread related, it's a general function for stopping the execution of the program (or script)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With