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ã€ã詊ããŠãã£ãããå§ããŠãã ãã