npm install --save coexpress
然后只需要 require(‘coexpress’)(require(‘express’)); 就可以让你的 express app
app.use(function * (req, res, next) { yield somePromise; next(); });