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()
       
    
  • 相关阅读:
    1503: [NOI2004]郁闷的出纳员
    2049: [Sdoi2008]Cave 洞穴勘测
    2301: [HAOI2011]Problem b
    BZOJ 1923: [Sdoi2010]外星千足虫
    BZOJ 2115: [Wc2011] Xor
    POJ 1830 开关问题
    欧拉函数基础
    BZOJ 2186 沙拉公主的困惑
    POJ 1845
    逆元基础知识整理
  • 原文地址:https://www.cnblogs.com/Ox9A82/p/7449734.html
Copyright © 2011-2022 走看看