def result(self): # TODO: docstring with self._lock: self._observed = True if self._exc_info: reraise(self._exc_info) return self._result