@spin_first
    def get_result(self, indices_or_msg_ids=None, block=None):
        block = self.block if block is None else block
        if indices_or_msg_ids is None:
            indices_or_msg_ids = -1
        
        if not isinstance(indices_or_msg_ids, (list,tuple)):
            indices_or_msg_ids = [indices_or_msg_ids]
        
        theids = []
        for id in indices_or_msg_ids:
            if isinstance(id, int):
                id = self.history[id]
            if not isinstance(id, str):
                raise TypeError("indices must be str or int, not %r"%id)
            theids.append(id)
        
        local_ids = [msg_id for msg_id in theids if msg_id in self.history or msg_id in self.results]
        remote_ids = [msg_id for msg_id in theids if msg_id not in local_ids]
        
        if remote_ids:
            ar = AsyncHubResult(self, msg_ids=theids)
        else:
            ar = AsyncResult(self, msg_ids=theids)
        
        if block:
            ar.wait()
        
        return ar
Encode request into client_message
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client.get_result--crossover with--dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/client_add_partition_lost_listener_codec.py/encode_request