Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

Непонятно с async-await в C# - 2

31.08.21 11:10
Re: Непонятно с async-await в C# - 2
 
NightWatch коренной житель
NightWatch
в ответ alex445 31.08.21 11:03, Последний раз изменено 31.08.21 11:11 (NightWatch)

https://docs.microsoft.com/en-us/dotnet/csharp/language-re...

The await operator suspends evaluation of the enclosing async method until the asynchronous operation represented by its operand completes. When the asynchronous operation completes, the await operator returns the result of the operation, if any. When the await operator is applied to the operand that represents an already completed operation, it returns the result of the operation immediately without suspension of the enclosing method. The await operator doesn't block the thread that evaluates the async method. When the await operator suspends the enclosing async method, the control returns to the caller of the method.

 

Перейти на