I was looking at some of the example code on Microsoft Playwright and in the example code, there is this bit
public static async Task Main()
{
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync();
var page = await browser.NewPageAsync();
await page.GotoAsync("https://playwright.dev/dotnet");
await page.ScreenshotAsync(new PageScreenshotOptions { Path = "screenshot.png" });
}
What does the first await
in line 4 do? I've tried searching for it but I can't find any documentation on it.