DEV Community

Cover image for How to Use Async Agnostic Decorators in Python
Patreon Engineering
Patreon Engineering

Posted on • Originally published at patreon.com

How to Use Async Agnostic Decorators in Python

At Patreon, we use generators to apply decorators to both synchronous and asynchronous functions in Python. Here's how you can do the same:

https://www.patreon.com/posts/how-to-use-async-124658443

What do you think of this approach?

Top comments (0)