@contextlib.contextmanager<EOL><INDENT>def run_until_stop(self):<DEDENT>
self.start()<EOL>try:<EOL><INDENT>yield self<EOL><DEDENT>finally:<EOL><INDENT>self.stop()<EOL><DEDENT>self.wait()<EOL>
A context manager that starts this Runnable, yields,
and then waits for it to finish.