✅ Double-Async

Is Method1 double async here?
public static async Task<string> Method1()
    {
        var client = new HttpClient();
        Console.WriteLine("in ");
        var content = await client.GetStringAsync("https://microsoft.com");
        return content;
    }

    public static Task<string> Method2()
    {
        var client = new HttpClient();
        return client.GetStringAsync("https://microsoft.com");
    }
Was this page helpful?