docs about middleware composition noop

This commit is contained in:
TJ Holowaychuk 2013-11-27 20:52:36 -08:00
parent 1a10181818
commit 9c652118a9

View file

@ -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