|
|
|
|
|
by DixieDev
1527 days ago
|
|
Within main(), your snippet will give you an error at compile time "function with calling convention 'Inline' cannot be async". In my snippet foo() is invoked in an async context using the async keyword, and when foo() suspends (due to it awaiting bar()) control will be returned to main(). If you change your first line from foo();
to _ = async foo();
Then your program will compile and your log is not going to be prevented by Zig's async shenanigans. |
|