class_docstr: Barrier to collect results and process them in bulk.
  
  A barrier can be used to collect multiple results and process them in bulk once
  a certain count or a timeout is reached.
  
  For instance, if ``max_results=N``, the ``on_completion`` callback will be
  invoked once :meth:`arrive` has been called ``N`` times.
  
  The completion callback will only be invoked once, even if more results
  arrive after completion. The collected results can be resetted
  with :meth:`reset`, after which the callback may be invoked again.
  
  The completion callback should expect one argument, which is the barrier
  object that completed.
  
  Args:
      max_results: Maximum number of results to collect before a call to
          :meth:`wait` resolves or the :meth:`on_completion` callback is invoked.
      on_completion: Callback to invoke when ``max_results`` results
          arrived at the barrier.
docstr: Reset barrier, removing all received results.
  
  Resetting the barrier will reset the completion status. When ``max_results``
  is set and enough new events arrive after resetting, the
  :meth:`on_completion` callback will be invoked again.
docstr_tok: ["Reset","barrier",",","removing","all","received","results",".","Resetting","the","barrier","will","reset","the","completion","status",".","When","``","max_results","``","is","set","and","enough","new","events","arrive","after","resetting",",","the",":","meth",":","`","on_completion","`","callback","will","be","invoked","again","."]
code: def reset(self) -> None:
      """Reset barrier, removing all received results.
  
      Resetting the barrier will reset the completion status. When ``max_results``
      is set and enough new events arrive after resetting, the
      :meth:`on_completion` callback will be invoked again.
      """
      self._completed = False
      self._results = []
  
file_path: ray/python/ray/air/execution/_internal/barrier.py
imports: from typing import Any, Callable, List, Optional, Tuple
label_desc: Use image node_id 7 for calling the Barrier obj's underlying member method code with example usage: obj.reset() without return types