zoukankan      html  css  js  c++  java
  • Promise in Chakra


    http://www.ecma-international.org/ecma-262/#sec-fulfillpromise

    25.4.1.3.1 and 25.4.1.3.2
    Promise Reject Functions
    Promise Resolve Functions
    Var JavascriptPromise::EntryResolveOrRejectFunction()
    
    25.4.1.5
    NewPromiseCapability ( C )
    JavascriptPromiseCapability* JavascriptPromise::NewPromiseCapability
    
    25.4.1.5.1
    GetCapabilitiesExecutor Functions(resolve,reject)
    Var JavascriptPromise::EntryCapabilitiesExecutorFunction
    
    25.4.2.1
    PromiseReactionJob ( reaction, argument )
    Var JavascriptPromise::EntryReactionTaskFunction()
    
    25.4.2.2
    PromiseResolveThenableJob ( promiseToResolve, thenable, then )
    Var JavascriptPromise::EntryResolveThenableTaskFunction()
    
    25.4.3.1  
    Promise(executor)
    Var JavascriptPromise::NewInstance()
    
    25.4.4.1
    Promise.all(iterable)
    Var JavascriptPromise::EntryAll()
    
    25.4.4.1.2
    Promise.all Resolve Element Functions
    Var JavascriptPromise::EntryAllResolveElementFunction()
    
    25.4.1.8
    TriggerPromiseReactions ( reactions, argument )
    Var JavascriptPromise::TriggerPromiseReactions()
    
    25.4.4.3
    Promise.race(iterable)
    Var JavascriptPromise::EntryRace()
    
    25.4.4.4
    Promise.reject ( r )
    Var JavascriptPromise::EntryReject()
    
    25.4.4.5
    Promise.resolve ( x )
    Var JavascriptPromise::EntryResolve()
    
    25.4.5.1
    Promise.prototype.catch(onRejected)
    Var JavascriptPromise::EntryCatch()
    
    25.4.5.3
    Promise.prototype.then ( onFulfilled, onRejected )
    Var JavascriptPromise::EntryThen()
    
    
     
    // Promise Identity Function as described in ES 2015Section 25.4.5.3.1
    Var JavascriptPromise::EntryIdentityFunction()
        
    // Promise Thrower Function as described in ES 2015Section 25.4.5.3.3
    Var JavascriptPromise::EntryThrowerFunction()
    
    // CreatePromiseCapabilityRecord as described in ES6.0 (draft 29) Section 25.4.1.6.1
    JavascriptPromiseCapability* JavascriptPromise::CreatePromiseCapabilityRecord()
       
    
  • 相关阅读:
    函数
    拉取代码到本地
    逻辑位运算符 以及 布尔运算符&&、||
    JS中substr与substring的区别
    ? :和!:的用法含义及es6语法...
    JS中attribute和property的区别
    并发、并行的理解
    斑鸠云商小程序记住账号和密码
    js中的foreach用法
    指针与数组
  • 原文地址:https://www.cnblogs.com/Ox9A82/p/7449734.html
Copyright © 2011-2022 走看看