Is there a way to warn about an unawaited Tasks?

后端 未结 0 998
后悔当初
后悔当初 2021-01-26 03:09

Take a look at this code:

interface IInterface
{
    Task DoSomethingAsync();
}

public class UsageClass
{
    IInterface obj;

    public void Use()
    {
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题