2019-05-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¦è¦ Webãã¹ããã¢ããªã§ãä½ãéåæå¦çãè¡ã£ã¦ããéã«ç»é¢ã«è¡¨ç¤ºããããããããåã£ããããã¢ãã¡ã¼ã·ã§ã³(æ£å¼ã«ã¯ãªãã¦ããã®...Xamarin.Formsã®ãActivity Indicatorãã§ã)ã表示ããæ¹æ³ã§ãã ä½ææ¹æ³ ã¾ããç»åã¯ã©ãããã®ãã¨ãªãã¾ãâ¦
ååã¯Promiseã«ã¤ãã¦æ¸ãã¾ãããããã®ç¶ãã§ä»åã¯async/awaitã«ã¤ãã¦ã ãåèã async/await å ¥éï¼JavaScriptï¼ asyncã¨ã¯ éåæé¢æ°ãå®ç¾©ããé¢æ°å®£è¨ã®ãã¨ã asyncé¢æ°ã¯ã以ä¸ã®åä½ãããã Promiseãè¿ã å¤ãreturnããã¨ãPromiseã¯ãããâ¦
Promiseã«ã¤ã㦠Promiseã¨ã¯ã éåæå¦çãå¶å¾¡ããããã®ããã¿ ES2015以éã§ä½¿ç¨å¯è½ ã¡ãªãã ãã®ï¼. ã³ã¼ããç°¡æ½ã«ãªããè¦ããããªãã(å人差ãã) ä¾ãã°ãéåæé¢æ°func1ãfunc3ããã£ãã¨ãã¦ãä¸è¨ã®å¶ç´ãããå ´åã func2ã¯func1ã®çµæãå¿ â¦
ç¾å¨ä»äºã§node.jsã使ç¨ãã¦ããããåå¼·ãå ¼ãã¦TypeScriptãå°å ¥ãããï¼ãã¨æãå°å ¥ããã®ã§ããã®éã®ã¡ã¢ã1 åæ éçºç°å¢ã¯Visual Studio Codeã(visual Studioã§ãåºæ¥ã¾ãã) node.jsã¨npmãäºåã«ã¤ã³ã¹ãã¼ã«ãã¦ããã(ã©ã¡ããnode.jsã®ã¤ã³â¦
ååã®ããã°ã§ãæå¾ã«ãç°å¢ã®åç¾ãªããSettings Syncã使ãã°...ãã¨ããè¨è¼ãããã®ã§ãããVS Codeã§ã®ç°å¢ãåæããæ¡å¼µæ©è½ãSettings Syncãã使ããããã£ãã®ã§ãããã使ç¨ããç°å¢ã®åææ¹æ³ãæ¸ãã¾ããã åæ åæã¨ãã¦ãä¸è¨ãå¿ è¦ã«ãªâ¦