Skip to content

Instantly share code, notes, and snippets.

Avatar

Quinn Fyzxs

View GitHub Profile
@Fyzxs
Fyzxs / gist:84732646d74c379aedb3ccda156f5347
Created Sep 1, 2019
Example of an awaitable unstarted task
View gist:84732646d74c379aedb3ccda156f5347
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);