【问题标题】:Comparison between @kriskowal's "Q" library and @forbeslindesay's "Promise" library@kriskowal 的“Q”库和 @forbeslindesay 的“Promise”库之间的比较
【发布时间】:2015-12-23 17:40:58
【问题描述】:

我正在寻找“Q”和“Promise”库之间的显着差异,因为它们都是为了方便地处理异步回调的 Promise。我很困惑哪个更好。

【问题讨论】:

  • forbeslindesay 的 Promise 库是准系统 Promise/A+ - Q 添加了糖以使常见的“模式”更容易编码 - 如果您想要额外的糖和更快的承诺,请使用 bluebird

标签: node.js promise q


【解决方案1】:

您在 Node 中真的都不需要,因为它支持 native promises。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 2014-04-24
    • 1970-01-01
    • 2014-11-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多