google-chrome - chrome中Promise.prototype.chain方法的特性

标签 google-chrome documentation promise chain

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

3年前关闭。




Improve this question




chrome 浏览器中名为 Promise.prototype.chain 的方法。
我找不到有关此方法的任何文档。
有人知道吗?

顺便说一句,我可以在浏览器中找到所有方法的 google chrome 文档吗?

最佳答案

注意:现在.chain只是 then 的弃用别名.

什么 chain基本上是什么then除了不展开 promise 。 Chain 是一个合适的“monadic flatMap”而不是 then它会自动解开 promise 。

已讨论 at great lengths在邮件列表和 TC session 上。决定反对。
.chain在 Chrome 中只是过去的遗物,它可能会在 future 的版本中出现,但目前没有人支持包含它的提案。我不会在生产中使用它。

关于google-chrome - chrome中Promise.prototype.chain方法的特性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34713965/

相关文章:

javascript - 使用后退按钮和 "sortable"表单问题恢复表单状态(Chrome 和 safari 但不是 Firefox)

c# - VS2010 : Autogenerated XML documentation file does not update

swift - Xcode 中循环变量的文档注释

c++ - 无法使用 SandcaSTLe (SHFB) 生成 XML 文档帮助文件?

javascript - Parse.com CloudCode 是否处理 response.success() 之后的代码?

javascript - 现在使用 Chrome 开发工具隔离内存泄漏

javascript - 使用 Chrome 打开 Internet Explorer/Firefox 等窗口

JavaScript(node.js) - 异步等待不起作用

javascript - Chrome API 的 onBeforeRedirect 无法正常工作?

javascript - while 循环和 promise