I am new to C# and using Task. I was trying to run this application but my application hangs every time. When I am adding task.wait(), it keeps wai
Task
task.wait()
You aren't actually running the task. Debugging and checking task.TaskStatus would show this.
task.TaskStatus
// this should help task.Start(); // ... or this: Task.Wait(Task.Factory.StartNew(RetrieveFormatedAddress("51.962146", "7.602304")));
Though if you're blocking, why start another thread to begin with?