2 Matching Annotations
  1. Dec 2023
    1. The difference between asyncio.sleep() and time.sleep() is that asyncio.sleep() is non-blocking.
    2. 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.