// Avoid .Result, it can easily deadlock.
// This error is because it's not supported by single threaded Web Assembly
private static async Task CalApi()
{
var response = await httpClient.GetAsync(path);
if (response.IsSuccessStatusCode) { ... }
}