Skip to content

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

@AnnyCaroline

Description

@AnnyCaroline

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions