docs: mention es2016 when discussing async functions
This commit is contained in:
parent
fcacb35220
commit
b44fe436c6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ $ npm install koa
|
|||
|
||||
## v2 Alpha
|
||||
|
||||
Koa v2 is currently in alpha. In this new version, the middleware function signature completely changes in favor of ES6 syntax:
|
||||
Koa v2 is currently in alpha. In this new version, the middleware function signature completely changes in favor of ES2015-2016 syntax:
|
||||
|
||||
```js
|
||||
// uses async arrow functions
|
||||
|
|
Loading…
Reference in a new issue