-
Notifications
You must be signed in to change notification settings - Fork 51
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
Koa@2 #32
Koa@2 #32
Conversation
I use async/await for pretty much all Koa 2 middleware that I write outside of this org, but it seems we don't wanna use Babel in KoaJS official stuff yet... unless we vote on it again and decide otherwise. Basically, I suggest whatever we do, we're consistent on this decision amongst all official middleware. Other than that, +1 on this PR :) // cc @jonathanong |
Just as discussed in koajs/etag#16, this looks like callback style 😢 . |
Agreed @coderhaoxin, gonna wait on this... - I'm also not so content with how the new Promise-based middleware is looking here without async/await. Hopefully, we can resolve the policy for using async/await other middleware in the org rather than just Koa core in that issue :) |
|
@coderhaoxin +1 / vote on the other thread :) |
according to koajs/koa#603, land on https://github.com/koajs/mount/tree/next |
what happened to @next support? |
Maybe it's better to write with
babel
+async
?