def clear(self):
while self.current or self.idlers or self.queue or self.rpcs:<EOL><INDENT>current = self.current<EOL>idlers = self.idlers<EOL>queue = self.queue<EOL>rpcs = self.rpcs<EOL>_logging_debug('<STR_LIT>')<EOL>if current:<EOL><INDENT>_logging_debug('<STR_LIT>', current)<EOL><DEDENT>if idlers:<EOL><INDENT>_logging_debug('<STR_LIT>', idlers)<EOL><DEDENT>if queue:<EOL><INDENT>_logging_debug('<STR_LIT>', queue)<EOL><DEDENT>if rpcs:<EOL><INDENT>_logging_debug('<STR_LIT>', rpcs)<EOL><DEDENT>self.__init__()<EOL>current.clear()<EOL>idlers.clear()<EOL>queue[:] = []<EOL>rpcs.clear()<EOL>_logging_debug('<STR_LIT>')<EOL><DEDENT>
Remove all pending events without running any.