Promise Anti-patternsã翻訳ããã¦é ãã¾ãããèè
ã®taoofcodeãã許å¯ãé ãã¦ç¿»è¨³ãæ稿ãã¦ãã¾ãã Promiseã¯ä¸åº¦ç解ãã¦ãã¾ãã°ç°¡åã ããããã¤ãé ãæ±ãããããã¿ã¼ã³ããããããã«ããã®ã¯ç§ãçµé¨ããããã¤ãã®ã¢ã³ããã¿ã¼ã³ã ã ãã¹ããããPromise åã¯è¤æ°ã®Promiseããã¹ããã: loadSomething().then(function(something) { loadAnotherthing().then(function(another) { DoSomethingOnThem(something, another); }); }); åããããããçç±ã¯ã両æ¹ã®Promiseã®çµæã§ä½ããããå¿
è¦ãããããã ãthen()ã¯ä¸ã¤åã®Promiseã®çµæããã³ã¼ã«ããã¯ã«æ¸¡ããªãã®ã§ããã§ãã§ã¤ã³ãç¨ãããã¨ã¯ã§ããªãã ã ã
{{#tags}}- {{label}}
{{/tags}}