public static void Main() { var async = new AsyncTimer(Console.WriteLine, 10, 1000, "Hellow world!"); Console.WriteLine("Will print 10 times \"Hello world!\" with delay of 1000 ms:"); async.Run(); }
static void Main(string[] args) { var async = new AsyncTimer(Console.WriteLine,10,1000,"Hello"); Console.WriteLine("Will print 10 times \"Hello\"with delay of 1000ms: "); async.Run(); }
static void Main() { Action action = () => { Console.WriteLine("Method called"); }; AsyncTimer asyncTimer = new AsyncTimer(action, 7, 1000); asyncTimer.Run(); }
static void Main(string[] args) { var async = new AsyncTimer(Console.WriteLine, 10, 1000); async.Run(); }
static void Main() { AsyncTimer asyncTimer = new AsyncTimer(a => Console.WriteLine(a), 10, 1000); asyncTimer.Run(); }
public static void Main() { var async = new AsyncTimer(Console.WriteLine, 10, 1000, "Hellow world!"); Console.WriteLine("Will print 10 times \"Hello world!\" with delay of 1000 ms:"); async.Run(); }
static void Main(string[] args) { var async = new AsyncTimer(Console.WriteLine, 10, 1000); async.Run(); }