Closed gaufung closed 2 months ago
异步 await
是 C# 中特色,这个演讲中,作者分享了异步中的高级用法
await
而不是 Wait()
或者 Result
Fire and Forget
方式处理无结果任务return await
方法ConfigureAwait(false)
ConfigureAwait(ConfigureAwaitOptions options)
方法ValueTask
IAsyncEnumerable
8.使用 waitAsync(CancellationToken)
IAsyncDisposable
https://www.youtube.com/watch?v=GQYd6MWKiLI&list=WL&index=1&ab_channel=NDCConferences