@decorator<EOL>def check_ready(f, self, *args, **kwargs):
self.wait(<NUM_LIT:0>)<EOL>if not self._ready:<EOL><INDENT>raise error.TimeoutError("<STR_LIT>")<EOL><DEDENT>return f(self, *args, **kwargs)<EOL>
Call spin() to sync state prior to calling the method.