code: def on_success(self, fn, *args, **kwargs):
          
  
          self._callbacks.append((fn, args, kwargs))
  
          result = self._resulted_in
          if result is not _NOTHING_YET:
              self._succeed(result=result)
docs: Call the given callback if or when the connected deferred succeeds.