def __call__(self, *args, **kwargs): with gevent.Timeout(self.timeout): return self._gevent_wrapper(self.app)(*args, **kwargs)