This is a fix for inspect.iscoroutinefunction failing for decorated async functions. Currently @inject.param will return a synchronous function that returns an awaitable object. This interferes with other decorators that need to inspect the function and determine if it is a coroutine function prior to executing the function.
Fixes #67
This is a fix for
inspect.iscoroutinefunction
failing for decorated async functions. Currently@inject.param
will return a synchronous function that returns an awaitable object. This interferes with other decorators that need to inspect the function and determine if it is a coroutine function prior to executing the function.