A thread that has a running RunLoop
.
let thread = RunLoopThread(name: "MyRunLoopThread") thread.start() thread.async{ /* This job requires (and has) a configured RunLoop. */ } /* When the job is done, call thread.cancel() to stop the thread. * The cancel method can be called from within a sync or async execution block, * or from elsewhere. */ /* You can see the tests of the project for funnier use cases (mostly starting * the thread _after_ dispatching async job on it). */