标签: c# task-parallel-library async-await
之间有什么区别:
public async Task Stop() { //some Code await semaphoreSlim.WaitAsync(); }
和
public Task Stop() { //some Code return semaphoreSlim.WaitAsync(); }
哪种方法更受欢迎?为什么?