Skip to content

Instantly share code, notes, and snippets.

@vinayakakv
Created February 20, 2017 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinayakakv/8a953896e6cd9809fa02f377e2d85382 to your computer and use it in GitHub Desktop.
Save vinayakakv/8a953896e6cd9809fa02f377e2d85382 to your computer and use it in GitHub Desktop.
C# Multithreading and Lambdas
static void Main(string[] args)
{
Thread t = new Thread(() => Console.WriteLine(FetchResult().Result));
t.Start();
for (int i = 0; i < 100; i++)
Console.Write("*");
t.Join();
Console.ReadKey();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment