Jan 16, 2019 Wednesday

Python decorators with arguments

The return value of the decorator function must be a function used to wrap the function to be decorated. That is, Python will take the returned function and call it at decoration time, passing the function to be decorated.

Helped me turn any method in a managed task.