[英]Suppressing “warning CS4014: Because this call is not awaited, execution of the current method continues…”
[英]What's the best approach to "CS4014: Because this call is not awaited, execution of the current method continues before the call is completed"?
問題是它正在返回一個任務,所以不要等待,最好的方法是將返回設置為:
_ = SomeAwaitableTask();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.