Created
February 20, 2017 18:22
-
-
Save vinayakakv/8a953896e6cd9809fa02f377e2d85382 to your computer and use it in GitHub Desktop.
C# Multithreading and Lambdas
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
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