You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write a program follow your README.MD .I find it works fine and do not cause a deadlock. I am new to learn Async/await. Here is the code.
`
class Program
{
static void Main(string[] args)
{
var task = AsyncString();
task.Wait();
// This line will never be reached
string res = task.Result;
Console.WriteLine(res);
}
public static async Task<string> AsyncString()
{
await Task.Delay(1000);
return "TestAsync";
}
}
}
`
The text was updated successfully, but these errors were encountered:
Hi, did you create a console application to test? That code will deadlock on an ASP.NET or forms application with the default configuration settings unless the default settings have changed for those since it was written.
I write a program follow your README.MD .I find it works fine and do not cause a deadlock. I am new to learn Async/await. Here is the code.
`
`
The text was updated successfully, but these errors were encountered: