# make the main thread call waitAndWork instead of just wait · gitcafe/zig

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

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

Visibility: public

Requested revision: 86e68dbf53b40480e6b57b0f184308fd83801b1f

Requested commit: 86e68dbf53b40480e6b57b0f184308fd83801b1f

Commit: 86e68dbf53b40480e6b57b0f184308fd83801b1f

Tree: b34b1a9da3e28accff2d913de4932be7cf61378b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
make the main thread call waitAndWork instead of just wait

The main thread has an implicit thread token which makes loitering
illegal.

```

## Parents

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

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