This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
private static async Task Main(string[] args) | |
{ | |
Task<string> task = new Task<string>(() => | |
{ | |
Console.WriteLine("Inside the unstarted task"); | |
return "Some Value"; | |
}); | |
SampleAsync<string> sampleAsync = new SampleAsync<string>(task); |