官术网_书友最值得收藏!

Interactive promises

Interactive promises are extended promises that add more value to the paradigm by adding two more functions to its arsenal, get and call:

  • get(propertyName): This function requests the given property from the target of promise. This also returns a promise to provide the value of the stated property from promise's target.
  • call(functionName, arg1, arg2…): This function requests to call the given method/function on the target of promise. It also returns a promise to provide the return value of the requested function call.
主站蜘蛛池模板: 康平县| 博乐市| 体育| 博乐市| 景洪市| 灵台县| 吴川市| 武城县| 平潭县| 股票| 凤凰县| 安国市| 宣城市| 靖边县| 华亭县| 手游| 柘荣县| 墨脱县| 玉环县| 伊金霍洛旗| 江都市| 巴中市| 阿克陶县| 乌拉特中旗| 长垣县| 金沙县| 久治县| 南宁市| 株洲县| 宁蒗| 贵阳市| 湛江市| 当阳市| 浦江县| 万安县| 武宁县| 博客| 保亭| 资阳市| 大兴区| 工布江达县|