thread::wait

thread::wait

Runs the event loop until the thread is asked to exit.