推 LaPass:改版的好快.... 一陣子沒寫C#,就又升級了 = =" 11/12 02:37
→ james732:C#的版本號碼快要趕上Java了...XDD 11/12 15:52
推 ngulin0911:推改版的好快...... 11/12 22:52
推 deuter:Task.Result 就已經會等做完才傳回result 11/14 00:59
→ deuter:await不是指"等"他做完, 而是指把後面剩下的 statements 11/14 01:00
→ deuter:加到continuation 11/14 01:00
→ QQ29:await 應該會等Task.Run這Task做完吧? 然後才會下一行 11/14 12:12
→ QQ29:但照理講 以現在的code來看 我沒必要開Task.Run不是嗎 11/14 12:13
→ deuter:await不會等做完, 否則就失去async的意義了 11/14 15:54
→ deuter:不過沒用過StorageFile class 11/14 15:55
→ QQ29:我認為會等他做完耶 如果Task是worker thread 會先讓UIthread 11/14 17:06
→ QQ29:去做事阿 11/14 17:07
→ QQ29:請問Task.Result 會等他做完才回傳 是哪裡有document呀 11/14 17:07
→ deuter:沒寫清楚,await是等做完後再接下去執行後面的程式,但是會 11/15 12:56
→ deuter:馬上return caller, 不會block current thread 11/15 12:56
→ deuter:"The get accessor for this property ensures that the 11/15 12:57
→ deuter:asynchronous operation is complete before returning." 11/15 12:57