class_docstr: Represents a list of results from calls to a set of actors.
  
  CallResults provides convenient APIs to iterate over the results
  while skipping errors, etc.
  
  .. testcode::
      :skipif: True
  
      manager = FaultTolerantActorManager(
          actors, max_remote_requests_in_flight_per_actor=2,
      )
      results = manager.foreach_actor(lambda w: w.call())
  
      # Iterate over all results ignoring errors.
      for result in results.ignore_errors():
          print(result.get())
class_docstr_tok: ["Represents","a","list","of","results","from","calls","to","a","set","of","actors",".","CallResults","provides","convenient","APIs","to","iterate","over","the","results","while","skipping","errors",",","etc",".","..","testcode",":",":",":","skipif",":","True","manager","=","FaultTolerantActorManager","(","actors",",","max_remote_requests_in_flight_per_actor=2",",",")","results","=","manager.foreach_actor","(","lambda","w",":","w.call","(",")",")","#","Iterate","over","all","results","ignoring","errors",".","for","result","in","results.ignore_errors","(",")",":","print","(","result.get","(",")",")"]
docstr: Add index of a remote actor plus the call result to the list.
  
  Args:
      actor_id: ID of the remote actor.
      result_or_error: The result or error from the call.
      tag: A description to identify the call.
docstr_tok: ["Add","index","of","a","remote","actor","plus","the","call","result","to","the","list",".","Args",":","actor_id",":","ID","of","the","remote","actor",".","result_or_error",":","The","result","or","error","from","the","call",".","tag",":","A","description","to","identify","the","call","."]
code: def add_result(
      self, actor_id: int, result_or_error: ResultOrError, tag: str
  ):
      """Add index of a remote actor plus the call result to the list.
  
      Args:
          actor_id: ID of the remote actor.
          result_or_error: The result or error from the call.
          tag: A description to identify the call.
      """
      self.result_or_errors.append(
          CallResult(actor_id, result_or_error, tag)
      )
  
imports: from collections import defaultdict
  import copy
  from dataclasses import dataclass
  import logging
  import sys
  import time
  from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, Tuple, Union
  import ray
  from ray.actor import ActorHandle
  from ray.exceptions import RayActorError, RayError, RayTaskError
  from ray.rllib.utils.typing import T
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 2 for calling the RemoteCallResults obj's underlying member method code with example usage: obj.add_result(actor_id, result_or_error, tag) without return types