A very thin wrapper layer between super-agent and Q to promisify superagent's callbacks
https://github.com/ericvicenti/superagent-q
想法是不错的
我觉得更好的组合是request + bluebird
Promise.promisifyAll(request)
这样看起来更帅一些
回复 (2)
J
promise 还用的不是很顺手,一直很别扭, 目前还比较习惯用 async
S
我更喜欢request+when 自豪地采用 CNodeJS ionic
参与回复
登录后即可参与回复。登录