[英]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.