http://blog.codingplayboy.com/tag/event-loop/