书栈网 · BookStack 本次搜索耗时 0.041 秒,为您找到 1234 个相关结果.
  • 5. Async functions

    5. Async functions 5.1 Overview 5.1.1 Variants 5.1.2 Async functions always return Promises 5.1.3 Handling results and errors of asynchronous computations via await 5.2 Underst...
  • Review

    Review Review As JavaScript continues to mature and grow in its widespread adoption, asynchronous programming is more and more of a central concern. Callbacks are not fully suf...
  • 并发

    并发 使用 Promises, 不要使用回调 回调不够简洁, 因为他们会产生过多的嵌套。 在 ES2015/ES6 中, Promises 已经是内置的全局类型了,使用它们吧! 不好的: require ( 'request' ). get ( 'https://en.wikipedia.org/wiki/Robert_Cecil_Marti...
  • Promise Trust

    Promise Trust Calling Too Early Calling Too Late Promise Scheduling Quirks Never Calling the Callback Calling Too Few or Too Many Times Failing to Pass Along Any Parameters/En...
  • Promise.any()

    Promise.any() Promise.any() Promise.any() 方法接受一组 Promise 实例作为参数,包装成一个新的 Promise 实例。只要参数实例有一个变成fulfilled 状态,包装实例就会变成fulfilled 状态;如果所有参数实例都变成rejected 状态,包装实例就会变成rejected 状态。该方法目前...
  • Sequences, Abstraction Design

    Sequences, Abstraction Design Sequences, Abstraction Design Understanding asynquence begins with understanding a fundamental abstraction: any series of steps for a task, whethe...
  • Promise实战

    1413 2018-07-17 《前端工程师手册》
    Promise实战 具体实现的库 Polyfill 扩展类库 编写Promise代码 创建流程 创建Promise对象 Thenable Promise.reject Promise的同步or异步调用 Promise#catch Promise chain 多个Promise对象完成后统一处理 通过回调方式来进行多个异步调用 使用Pr...
  • Global Promise Rejection Handling

    Global Promise Rejection Handling Node.js Rejection Handling Browser Rejection Handling Global Promise Rejection Handling One of the most controversial aspects of promises is...
  • 前言

    前言 写作初衷 开始阅读之前 格式约定 推荐浏览器 运行示例代码 本书源代码/License 意见和疑问 前言 写作初衷 本书的目的是以目前还在制定中的ECMAScript 6 Promises 规范为中心,着重向各位读者介绍JavaScript中对Promise相关技术的支持情况。 通过阅读本书,我们希望各位读者能在下面三个目标上有...
  • Queries

    Queries Executing Queries are Not Promises References to other documents Streaming Versus Aggregation Next Up Queries Mongoose models provide several static helper functi...