How to use async/await with router

48 views
Skip to first unread message

zhuisui

unread,
May 6, 2016, 3:02:27 AM5/6/16
to Express
I am attempting async/await feature with express router now. 
If I want to write await in router middleware handle function, I must write async before `function`.
But now, `throw err` won't be caught by handling error middleware.
Reply all
Reply to author
Forward
0 new messages