gpt4 book ai didi

c# - 异步快速路径

转载 作者:太空狗 更新时间:2023-10-29 21:19:00 25 4
gpt4 key购买 nike

这里是 an article on how the Async CTP refresh can take advantage of the async "fast path" .

它提到了提高效率等,但我什至不知道“快速路径”是什么?我想确定文章中的提示是否与我相关,但找不到“快速路径”的解释

最佳答案

“快速路径”是指正在等待的 Task 在等待时已经完成。

如果发生这种情况,那么 await 就没有意义从您的方法返回,因为下一个继续将立即排队。

因此,在“快速路径”中,await 不会让步,您的方法会继续执行。

关于c# - 异步快速路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8769321/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com