dotnetcore / AgileConfig

基于.NET Core开发的轻量级分布式配置中心 / .NET Core lightweight configuration server
MIT License
1.5k stars 299 forks source link

async 不需要await 的场景下是否可以直接返回 Task 结果?减少async 编译器压力呢? #160

Closed HaoQianCheng closed 8 months ago

HaoQianCheng commented 8 months ago

image

image

kklldog commented 8 months ago

总体上没啥区别,但是确实是直接 return task 更好一点。