# Allow async in nosuspend scope · gitcafe/zig

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

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

Visibility: public

Requested revision: 93f8110e5d9ca7e3ac81b33edd38709fac2c6acd

Requested commit: 93f8110e5d9ca7e3ac81b33edd38709fac2c6acd

Commit: 93f8110e5d9ca7e3ac81b33edd38709fac2c6acd

Tree: 058d70c0bd9568e9a6ffa91c4d4fcaad7b6db68d

Author: Mathieu Guay-Paquet

Committer: Mathieu Guay-Paquet

## Message

```
Allow async in nosuspend scope

Starting an async function call is actually a synchronous operation,
since the caller is not awaiting on the callee for a return value.

This commit removes the compiler code which generates the error and
updates the relevant test case.

In the presence of CallModifierAsync, the callee is expected to
suspend, so it should not be changed to CallModifierNoSuspend.

```

## Parents

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

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