docs about middleware composition noop
This commit is contained in:
parent
1a10181818
commit
9c652118a9
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ app.use(function *(next){
|
|||
});
|
||||
```
|
||||
|
||||
When the furthest downstream middleware executes `yield next;` it's really yielding to a noop
|
||||
function, allowing the middleware to compose correctly anywhere in the stack.
|
||||
|
||||
## Async operations
|
||||
|
||||
The [Co](https://github.com/visionmedia/co) forms Koa's foundation for generator delegation, allowing
|
||||
|
|
Loading…
Reference in a new issue