Is it useful to always return a promise
问题 I'm using bluebird to design some nodejs api wrapper around an http service. Many of the functions in this wrapper are asynchronous and so it makes a lot of sense to return promises from these implementation. My colleague has been working on the project for a few days now and interesting pattern is emerging, he is also returning promises from synchronously implemented functions. Example: function parseArray(someArray){ var result; // synchronous implementation return Promise.resolve(result);