Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Implementing an Asynchronous Method | Asynchronous Programming and Introduction to Web Services
/
Introduction to .NET with C#

bookImplementing an Asynchronous Method

メニューを表示するにはスワイプしてください

Important Points

  • A task represents an asynchronous operation;
  • We can use the async keyword to convert a method into an asynchronous method;
  • An asynchronous method always returns a Task object;
  • In order to return data from an asynchronous method, we use the Task<T> as the method's return value, where T is the datatype of the return value;
  • The await keyword 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?

question mark

What does the async keyword do in C#?

正しい答えを選んでください

question mark

What keyword is used to pause a method until an asynchronous operation is complete?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  2

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 2.  2
some-alt