Esempio n. 1
0
        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();
            
        }
Esempio n. 3
0
        static void Main()
        {
            Action action = () =>
            {
                Console.WriteLine("Method called");
            };

            AsyncTimer asyncTimer = new AsyncTimer(action, 7, 1000);

            asyncTimer.Run();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            var async = new AsyncTimer(Console.WriteLine, 10, 1000);

            async.Run();
        }
Esempio n. 5
0
        static void Main()
        {
            AsyncTimer asyncTimer = new AsyncTimer(a => Console.WriteLine(a), 10, 1000);

            asyncTimer.Run();
        }
Esempio n. 6
0
 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();
 }