transform a "normal" decorator in one for async functions
Thomas Jollans
tjol at tjol.eu
Tue Sep 18 11:09:53 EDT 2018
On 2018-09-18 16:20, vito.detullio at gmail.com wrote:
> but I cannot rewrite this library.
Perhaps not, but surely you can write your own decorator that does
whatever this library's decorator does for async functions? Presumably
you have the code...
> is there a way to "convert" a "normal" decorator in one that can handle async functions?
In general? No.
More information about the Python-list
mailing list