Viktor Kireev

Results 2 comments of Viktor Kireev

fn(req, res, next) returns a promise. What is the real need of wrapping it with Promise.resolve?

@robertmirro Here in this example `next` is not used inside handler. But it can, e.g. when callback function is used: ``` app.get('/users/:id', asyncMiddleware(async (req, res, next) => { const userId...