Koa: why use 'return' in here?

Created on 11 May 2018  路  2Comments  路  Source: koajs/koa

Most helpful comment

Because it's a promise. Even though Koa isn't necessarily doing anything with the return, anyone consuming Koa directly e.g. through Application.callback can.

All 2 comments

Because it's a promise. Even though Koa isn't necessarily doing anything with the return, anyone consuming Koa directly e.g. through Application.callback can.

Thanks~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rainesinternationaldev picture rainesinternationaldev  路  5Comments

edahlseng picture edahlseng  路  3Comments

SteveCruise picture SteveCruise  路  3Comments

ElegantScripting picture ElegantScripting  路  5Comments

usernameisalreadytaken2014 picture usernameisalreadytaken2014  路  4Comments