code: def _wrap(self, meth, *args, **kwargs):
          
          if not self.connected:
              return self._connectSchedule(self._wrap, meth, *args, **kwargs)
  
          opres = meth(self, *args, **kwargs)
          return self.defer(opres)
docs: Calls a given method with the appropriate arguments, or defers such
          a call until the instance has been connected