Add an example for setTimer. See #434.
exitEventLoop(true) doesn't wait for the other threads anymore and by default now only the current thread's event loop is exited.

Waiting for other threads resulted in a hang when exitEventLoop(true) was called from a thread other than the main thread.