2 Matching Annotations
- Dec 2023
-
-
The difference between asyncio.sleep() and time.sleep() is that asyncio.sleep() is non-blocking.
-
What does it mean when something is non-blocking?
"Non-blocking" means a program will allow other threads to continue running while it's waiting. This is opposed to "blocking" code, which stops execution of your program completely. Normal, synchronous I/O operations suffer from this limitation.
-