gpt4 book ai didi

c# - Visual Studio : How to easily convert a method and its callers to async

转载 作者:行者123 更新时间:2023-12-04 08:03:20 24 4
gpt4 key购买 nike

在 VS2019 中,是否可以更改方法的签名以返回 TaskTask<T>并以级联方式使所有上游调用者异步?

最佳答案

In VS2019, is it possible to change a method's signature to return a Task or Task...

简短的回答是否定的

因为可以重构方法的名称,如果您选择智能感知选项来重命名,调用者的名称将会更改,但它不会处理您的任何异步需求想要。换句话说,重构不是异步感知的。

关于c# - Visual Studio : How to easily convert a method and its callers to async,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66335221/

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