C#. Making Func delegates async
ex.1
static void Main(string[] args) { SmthAsync(); for (int i = 0; i < 4; i++) { Thread.Sleep(1000); Console.WriteLine(i); } } private static Func<int,
ex.1
static void Main(string[] args) { SmthAsync(); for (int i = 0; i < 4; i++) { Thread.Sleep(1000); Console.WriteLine(i); } } private static Func<int,
Tasks executed in thread pool asyncroniously.
ex. 1 Returning no result
static void Main(string[] args) { Task t = new Task(() => Console.WriteLine(«this is