From 9c652118a9dcfa3313e2c1663f1b88256f2691ea Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Wed, 27 Nov 2013 20:52:36 -0800 Subject: [PATCH] docs about middleware composition noop --- docs/guide.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guide.md b/docs/guide.md index 632a89f..dd1b17f 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -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