Closed brettimus closed 1 year ago
This PR adds support for async functions, making the following changes:
iscoroutinefunction
autometrics
Callable[P, Awaitable[T]]
decorator
async_decorator
test_decorator.py
pytest-asyncio
fastapi-example.py
Fixes #29
This PR adds support for async functions, making the following changes:
iscoroutinefunction
autometrics
decorator, usingCallable[P, Awaitable[T]]
as part of the type signaturedecorator
andasync_decorator
test_decorator.py
(which required adding thepytest-asyncio
module to dev dependencies)fastapi-example.py
exampleFixes #29