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: Return an iterator over the results.
docstr_tok: ["Return","an","iterator","over","the","results","."]
code: def __iter__(self) -> Iterator[ResultOrError]:
      """Return an iterator over the results."""
      # Shallow copy the list.
      return self._Iterator(copy.copy(self.result_or_errors))
  
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 3 for calling the RemoteCallResults obj's underlying member method code with example usage: obj.__iter__() and returns: self