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 handler support #311

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Async handler support #311

merged 1 commit into from
Apr 8, 2024

Conversation

jonls
Copy link
Contributor

@jonls jonls commented Apr 3, 2024

As far as I can tell, all that is needed is to wrap the call to the handler in current_app.ensure_sync() as described in https://flask.palletsprojects.com/en/2.3.x/async-await/#extensions

Issue for this feature request: #231

Copy link
Contributor

@gtmanfred gtmanfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would love to see us eventually get to a place where we can also support Quart.

@jonls jonls merged commit 6d9b178 into master Apr 8, 2024
82 checks passed
@jonls jonls deleted the jonls/async-handler branch April 8, 2024 16:43
@airstandley airstandley mentioned this pull request Apr 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants