Skip to content

Event listener cannot trigger the same event #3

@naves-thiago

Description

@naves-thiago

Calling the event's __call() method from within a listener would cause __call() to reenter, which is not handled at all (nor prevented) supported in the current implementation.
This is a non-obvious problematic example:

task_t:new(function()
    await("foo")
    -- [...]
    emit("foo")
end)()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions