æ¦è¦ Promiseã¨ã¯éåæå¦çãä¸æãæ±ãçºã®APIã§ããããã¿ã¼ã³ã§ããã éåæã®å¦çã®å®äºå¾ã«ç¶ãã¦å¦çãè¡ãããã¨ããããã³ã¼ã«ããã¯ãã¿ã¼ã³ã使ãããããå¦çãé£ç¶ããã¨ã³ã¼ã«ããã¯å°çã¨è¨ãããåããã¥ããã½ã¼ã¹ã³ã¼ãã«ãªã£ã¦ãã¾ãã ã¾ããè¤æ°ã®éåæå¦çãå®äºããæã«å¦çãè¡ããªã©ãã³ã¼ã«ããã¯ãã¿ã¼ã³ã§ã¯é£ããäºãã¹ãã¼ãã«ã§ããã®ããã®Promiseã§ããã ä»ã¾ã§ã¯DOMã®æ¹ã§DOM Promiseã¨ãã¦ä»æ§çå®ãé²ãããã¦ããããã©ã¤ãã©ãªã®Deferredãæåã ã£ãããES2015æ¨æºã«å ¥ããã¨ã«ãªããV8ã«å®è£ ãããã å®è£ ãããã¡ã½ãã Promise.resolve(x) Promise.reject(x) Promise.all( [p1, p2, p3, ......] ) Promise.race( [p1, p2, p3, ......] )
{{#tags}}- {{label}}
{{/tags}}