# improvements to \`@asyncCall\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 5c3a9a1a3eef82ffad17bc295da05ecccd9006a5

Requested commit: 5c3a9a1a3eef82ffad17bc295da05ecccd9006a5

Commit: 5c3a9a1a3eef82ffad17bc295da05ecccd9006a5

Tree: bc59e5a8e4526a1d1fa7b8dad10af509a6286419

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
improvements to `@asyncCall`

 * `await @asyncCall` generates better code. See #3065
 * `@asyncCall` works with a real `@Frame(func)` in addition to
   a byte slice. Closes #3072
 * `@asyncCall` allows passing `{}` (a void value) as the result
   pointer, which uses the result location inside the frame.
   Closes #3068
 * support `await @asyncCall` on a non-async function. This is in
   preparation for safe recursion (#1006).

```

## Parents

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

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