Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async support #9

Closed
trondhindenes opened this issue Nov 9, 2021 · 3 comments
Closed

async support #9

trondhindenes opened this issue Nov 9, 2021 · 3 comments

Comments

@trondhindenes
Copy link

it would be great if there was async support here, for example with something like this:

app.add_api_route("/health", health([sync_methods], async_health([async_methods])))

fastapi-health would take care of awaiting the async_health methods etc. My use case is that in my async-only fastapi app I have to implement async-in-sync wrappers in order to use fastapi-health as it is today.

@Kludex
Copy link
Owner

Kludex commented Nov 9, 2021

@trondhindenes
Copy link
Author

oh nice - i just assumed there was no async support since the example didn't mention it. Great! Thanks for the prompt response!

@Kludex
Copy link
Owner

Kludex commented Nov 9, 2021

PR welcome to improve the README with a better example, jfyk. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants