Created
June 11, 2015 06:06
-
-
Save vasanthk/ce42f0bc92d784dd2ff7 to your computer and use it in GitHub Desktop.
Difference between Dispatcher and callbacks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dispatcher is used to broadcast payloads to registered callbacks. This is different from generic pub-sub systems in two ways: | |
1) Callbacks are not subscribed to particular events. Every payload is dispatched to every registered callback. | |
2) Callbacks can be deferred in whole or part until other callbacks have been executed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment