# Revert "thread: simplify and remove useless return in spawn \(\#8621\)" · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ddf9ff79bd2eccadafcdf12b191c62c66b247b64)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ddf9ff79bd2eccadafcdf12b191c62c66b247b64

Requested commit: ddf9ff79bd2eccadafcdf12b191c62c66b247b64

Commit: ddf9ff79bd2eccadafcdf12b191c62c66b247b64

Tree: b1f5f2d6be676d0435024d464b3af7facdd617c3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "thread: simplify and remove useless return in spawn (#8621)"

This reverts commit 77cb45f59f7b37c316af1762298d6032e2b130b5.

Zig's error return traces will point to the return token if they
happen to occur, so having multiple return statements makes those
stack traces really helpful. This destroys debuggability.

```

## Parents

- [77cb45f59f7b37c316af1762298d6032e2b130b5](https://git.cafe/gitcafe/zig/commit/77cb45f59f7b37c316af1762298d6032e2b130b5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ddf9ff79bd2eccadafcdf12b191c62c66b247b64?format=markdown)
