code: def wait_processed(self, timeout):
          
          if not isinstance(timeout, baseinteger):
              raise TypeError("timeout can only be an instance of type baseinteger")
          result = self._call("waitProcessed",
                       in_p=[timeout])
          return result
docs: Wait until time outs, or this event is processed. Event must be waitable for this operation to have
          described semantics, for non-waitable returns true immediately.
  
          in timeout of type int
              Maximum time to wait for event processing, in ms;
              0 = no wait, -1 = indefinite wait.
  
          return result of type bool
              If this event was processed before timeout.