阅读背景:

使用快递路线处理程序和承诺 - 最佳做法是什么?

来源:互联网 

I'm currently working on a web project and I'm trying to understand Node.js and express. I know about that for achiving asynchronous easy to maintain code we should use promises , but I'm confused about the following scenario: I have a route handler for REST API , should I return a promise ? even if there is no Async work done there ? i.e :I'm currently working on a web project and I'm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: