def set_scheduled(self):
with self._idle_lock:<EOL><INDENT>if self._idle:<EOL><INDENT>self._idle = False<EOL>return True<EOL><DEDENT><DEDENT>return False<EOL>
Returns True if state was successfully changed from idle to scheduled.