Skip to content

Instantly share code, notes, and snippets.

View Fyzxs's full-sized avatar

Quinn Fyzxs

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