Skip to content

Instantly share code, notes, and snippets.

@vasanthk
Created June 11, 2015 06:06
Show Gist options
  • Save vasanthk/ce42f0bc92d784dd2ff7 to your computer and use it in GitHub Desktop.
Save vasanthk/ce42f0bc92d784dd2ff7 to your computer and use it in GitHub Desktop.
Difference between Dispatcher and callbacks
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