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

Events declared as a public fields don't work when using code/await prototype #145

Open
AnnyCaroline opened this issue Aug 26, 2019 · 0 comments

Comments

@AnnyCaroline
Copy link
Member

This code executes correctly, and prints out the string "change".

code/await Test(none) -> (event none change) -> none do
    await 1s;
    emit change;
end

var&? Test test = spawn Test(); 
await test!.change;
_printf("change\n");

This one, however, never prints the string.

code/await Test(none) -> (event none change) -> none;

var&? Test test = spawn Test(); 
await test!.change;
_printf("change\n");

code/await Test(none) -> (event none change) -> none do
    await 1s;
    emit change;
end
@AnnyCaroline AnnyCaroline changed the title Events declared as a public field don't work when using code/await prototype Events declared as a public fields don't work when using code/await prototype Aug 26, 2019
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

1 participant