예제 #1
0
        public void EventLoopTests()
        {
            EventLoop el = new EventLoop();

            el.RegisterAction(() => { System.Diagnostics.Debug.WriteLine("Hello World"); });
            el.RegisterAction(() => { System.Console.WriteLine("Hello World"); });

            Thread t = new Thread(new ThreadStart(el.Start));

            t.Start();
            el.Close();
        }