class_docstr: A simple consumer that calls producers to perform some work.
docstr: Tells all the producers to perform one step of work.
docstr_tok: ["Tells","all","the","producers","to","perform","one","step","of","work","."]
code: def step(self) -> None:
      """Tells all the producers to perform one step of work."""
      # Call the producers to asynchronously produce work given a dummy context
      # represented by a counter.
      futures = [
          producer.futures.work(context)
          for context, producer in enumerate(self._producers)
      ]
  
      # Block to gather the results of all the producers.
      results = [future.result() for future in futures]
      logging.info("Results: %s", results)
  
file_path: launchpad/launchpad/examples/consumer_producers/program.py
imports: from typing import List
  from absl import logging
  import launchpad
label_desc: Use image node_id 3 for calling the Consumer obj's underlying member method code with example usage: obj.step() without return types