def receive(self):
ret = self.communicationChannel.receive_all()<EOL>self.nruns -= len(ret)<EOL>if self.nruns > <NUM_LIT:0>:<EOL><INDENT>import logging<EOL>logger = logging.getLogger(__name__)<EOL>logger.warning(<EOL>'<STR_LIT>'.format(<EOL>len(ret), self.nruns))<EOL><DEDENT>elif self.nruns < <NUM_LIT:0>:<EOL><INDENT>import logging<EOL>logger = logging.getLogger(__name__)<EOL>logger.warning(<EOL>'<STR_LIT>'.format(<EOL>len(ret), -self.nruns))<EOL><DEDENT>return ret<EOL>
Return pairs of run ids and results.

        This method waits until all event loops finish