-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
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.