Re: transform a "normal" decorator in one for async functions

2018-09-19 Thread vito . detullio
Il giorno martedì 18 settembre 2018 17:36:16 UTC+2, vito.d...@gmail.com ha scritto: > > > is there a way to "convert" a "normal" decorator in one that can handle > > > async functions? > > In general? No. > Ouch. > > I'm new to the "async" world, but so this mean that all of the (appliable) >

Re: transform a "normal" decorator in one for async functions

2018-09-18 Thread vito . detullio
Il giorno martedì 18 settembre 2018 17:15:22 UTC+2, Thomas Jollans ha scritto: > > 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... well, maybe

Re: transform a "normal" decorator in one for async functions

2018-09-18 Thread Thomas Jollans
On 2018-09-18 16:20, vito.detul...@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" decorato