code: def _subtask_result(self, idx, value):
          
          self._results[idx] = value
          if len(self._results) == self._num_tasks:
              self.set_result([
                  self._results[i]
                  for i in range(self._num_tasks)
              ])
docs: Receive a result from a single subtask.