Docstring:

```
Set a result or exception on ``future``

Called when the future's function completes, inside the spawned thread.
```