> ## 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.

# 결과

> 하나 이상의 OperationRef를 블록하고 결과를 반환합니다.

Source: [src/cwsandbox/**init**.py:144](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/__init__.py#L144)

```python theme={"system"}
results(ref: OperationRef[T], /) -> T
```

```python theme={"system"}
results(refs: Sequence[OperationRef[T]], /) -> list[T]
```

하나 이상의 OperationRef를 블록하고 결과를 반환합니다.

OperationRef에서 결과를 가져오기 위한 편의 함수입니다.
단일 ref의 경우 결과를 직접 반환합니다. ref 시퀀스의 경우,
동일한 순서로 결과 목록을 반환합니다.
**Parameters**

* `refs` (`OperationRef[T] | Sequence[OperationRef[T]]`): 단일 OperationRef 또는 OperationRef 시퀀스입니다.

**Returns**

* `T | list[T]`: 연산의 결과(들)입니다.

**Raises**

* `Exception`: 하위 연산에서 발생한 모든 예외입니다.

**Examples**

단일 ref:

```python theme={"system"}
data = cwsandbox.results(sandbox.read_file("/path"))
```

다중 refs:

```python theme={"system"}
all_results = cwsandbox.results([sb.read_file(f) for f in files])
```
