The Mandelbrot example shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop.