-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Force aiohttp.web handlers to coroutines #186
Comments
i actually like that you can use normal function as handler. |
I'll probably publish PR for middlewares at this weekend. |
how about wrapping non-coroutine handlers into coroutine inside add_route then? |
+1 for coroutines only. |
I'm ok with automatic converting in |
+1 for automatic converting. |
Done |
Now handler may be a regular function.
I guess to stop support for this behavior and raise an exception in
router.add_route()
if non-coroutine has passed.@fafhrd91 you have guessed this earlier, do you agree with proposed change now?
The text was updated successfully, but these errors were encountered: