Skip to content

Event listener cannot trigger the same event #3

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)()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions