ã¯ããã« promiseã使ãã¨ãããã¤ãpromiseã¡ã½ãããã§ã¼ã³ã§è¨è¼ãã¦ãã¾ããï¼ãasync/awaitãå©ç¨ãã¦ãã¾ããï¼ ãã¡ããç¶æ³ã«ãã£ã¦ä¸¡æ¹æ¸ãã®ãæ®ã©ã ã¨ã¯æãã®ã§ãããç§ã¯async/awaitã®æ¹ãåæçãªæ¸ãæ¹ããã«èªã¿ãããããããªãã¹ããã¡ãã§è¨è¼ãã¦ãã¾ããããããªãããã¨ã©ã¼ãã³ããªã³ã°ãç解ã§ãã¦ããªãã£ããããã¨ã©ã¼ã®æå¨ãçªãæ¢ããã®ã«è¦å´ãã¦ãã¾ãã¾ããã ãã®ããããããæ©ã«async/awaitã«ãããã¨ã©ã¼ãã³ããªã³ã°ã«ã¤ãã¦åå¿é²çã«ã¾ã¨ãã¦ããã¾ãã ãã®è¨äºã®ã¾ã¨ã; catchãããã¨ã©ã¼ã¯rejectã®ã¿ããthrowãããã¨ã©ã¼ãå«ã¾ããã â両æ¹catchã§ãã asyncé¢æ°ã«ãããå¦çã®é åºãawaitãããå ´åã¨ãªãå ´å âawaitããªãå ´åã«ã¯åæçã«å¦çãå®è¡ãããcatchã§ããªããªã ã¨ã©ã¼å¦çãå¤å´ã«ä¼æã
{{#tags}}- {{label}}
{{/tags}}