Implementing an Asynchronous Method
メニューを表示するにはスワイプしてください
Important Points
- A task represents an asynchronous operation;
- We can use the
asynckeyword to convert a method into an asynchronous method; - An asynchronous method always returns a
Taskobject; - In order to return data from an asynchronous method, we use the
Task<T>as the method's return value, whereTis the datatype of the return value; - The
awaitkeyword waits for an asynchronous task to be performed.
1. What does the async keyword do in C#?
2. What keyword is used to pause a method until an asynchronous operation is complete?
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 11
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 1. 章 11