Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The generator example #70

Open
akrzemi1 opened this issue Aug 13, 2023 · 2 comments
Open

The generator example #70

akrzemi1 opened this issue Aug 13, 2023 · 2 comments

Comments

@akrzemi1
Copy link
Member

In the generator example in the docs (https://klemens.dev/async/#generator), where is the instruction that prints "In main 4"? I do not see any explicit loop and only one printf. Or is it just a bug?

@akrzemi1
Copy link
Member Author

Also, the second generator example says in the output, "Pushed 2" but there is no corresponding print instruction.

@klemens-morgenstern
Copy link
Collaborator

Yeah, that is a mistakez there should be a second printf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants