koajs / examples

Example Koa apps
4.52k stars 744 forks source link

Correct way to call yield next #91

Closed bananaappletw closed 8 years ago

bananaappletw commented 8 years ago

yield* next -> yield next

I think when they wrote example, they did it by accident.

The following lines are from jongleberry's article yield next vs. yield* next

Although we Koa uses it internally for "free" performance, we don't advocate it to avoid confusion.

Also wiki mentioned it on error handling.

hemanth commented 8 years ago

Good catch.