def receive(self):
pkgidx_result_pairs = self.receive_all()<EOL>if pkgidx_result_pairs is None:<EOL><INDENT>return<EOL><DEDENT>results = [r for _, r in pkgidx_result_pairs]<EOL>return results<EOL>
return a list results of all tasks.

        This method waits for all tasks to finish.

        Returns
        -------
        list
            A list of results of the tasks. The results are sorted in
            the order in which the tasks are put.