© 2026 Hedgehog Software, LLC
private readonly string _Value; public MyClass() { // Constructor Task<string> task = GetMyValue(); // Makes an asynchronous Http request while (!task.IsCompleted) Thread.Sleep(10); _Value = task.Result; }