# Future

Source: https://www.tensorplay.cn/docs/generated/tensorplay.Future.html

```python
class tensorplay.Future
```

```python
add_done_callback(self: object, callback: collections.abc.Callable) &#x2192; None
```

```python
done(self: tensorplay._C.Future) &#x2192; bool
```

```python
is_done(self: tensorplay._C.Future) &#x2192; bool
```

```python
set_exception(self: tensorplay._C.Future, result: object) &#x2192; None
```

```python
set_result(self: tensorplay._C.Future, result: object) &#x2192; None
```

```python
then(self: object, callback: collections.abc.Callable) &#x2192; tensorplay._C.Future
```

```python
value(self: tensorplay._C.Future) &#x2192; object
```

```python
wait(self: tensorplay._C.Future) &#x2192; object
```
