# docs: document the nosuspend keyword \(\#7972\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f270bef9a4d21e880826cef6b5264acdc84f0a6f

Requested commit: f270bef9a4d21e880826cef6b5264acdc84f0a6f

Commit: f270bef9a4d21e880826cef6b5264acdc84f0a6f

Tree: 4de4fbc10e8846ab6690dd94143a31bc702ea234

Author: Mathieu Guay-Paquet

Committer: GitHub

## Message

```
docs: document the nosuspend keyword (#7972)

* docs: document the nosuspend keyword

* Specify that resuming from suspend is allowed in nosuspend

* Fix the description of the requirements of nosuspend

* Make use of nosuspend in some example code.

This is mainly motivated by the incorrect claim that "there would be
no way to collect the return value of amain, if it were something
other than void".
```

## Parents

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

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