Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt

Use this file to discover all available pages before exploring further.

Source: src/cwsandbox/init.py:83
results(ref: OperationRef[T], /) -> T
results(refs: Sequence[OperationRef[T]], /) -> list[T]
Block for one or more OperationRefs and return results. This is a convenience function for retrieving results from OperationRefs. For a single ref, returns the result directly. For a sequence of refs, returns a list of results in the same order. Parameters
  • refs (OperationRef[T] | Sequence[OperationRef[T]]): A single OperationRef or a sequence of OperationRefs.
Returns
  • T | list[T]: The result(s) from the operation(s).
Raises
  • Exception: Any exception raised by the underlying operation(s).
Examples Single ref:
data = cwsandbox.results(sandbox.read_file("/path"))
Multiple refs:
all_results = cwsandbox.results([sb.read_file(f) for f in files])
Last modified on April 21, 2026