Slowing Down Code With Decorators
Decorators can be used to slow code down. Slowing down code can be useful when working with web services or when you want to rate limit a function. In this lesson, you’ll see how to create a
@slow_down decorator that sleeps one second before it calls the decorated function.
Become a Member to join the conversation.