Skip to content

AddListener and AddLIstenerDispatch #20

@cnewman

Description

@cnewman

AddListener and AddListenerDispatch are always called together.

If you call AddListener alone, you only add this to a policy that isn't connected tot he dispatcher (and will never run)

If you call AddListenerDispatch alone, you aren't listening to the policy (even though the dispatcher is calling it) so you get no information.

I can't think of any reason why you'd call them alone.

Because of this, there should be a function or something that calls both just for ease of use for anyone learning how to use the dispatcher. EVEN if there is a reason to call one or the other separately, there should still be a function that does both, imo.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions