what will the runtime do when await something? #130464
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 31 replies
-
There isn't the thread during
Nothing waits for
This is called event-based asynchronous pattern. You can check the (very detailed) post about how async/await really works. The posts also explains why async/await replaces other asynchronous patterns to become the major pattern in .NET. |
Beta Was this translation helpful? Give feedback.

整个操作系统调用的入口位于
OnNativeIOCompleted:runtime/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolBoundHandle.WindowsThreadPool.cs
Lines 151 to 168 in 795e21d