Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a mechanism to have specialized dispatchers #12

Open
umamaistempo opened this issue Mar 27, 2017 · 0 comments
Open

Provide a mechanism to have specialized dispatchers #12

umamaistempo opened this issue Mar 27, 2017 · 0 comments

Comments

@umamaistempo
Copy link
Contributor

Depends on #11

It might be useful to have a way to extend dispatchers. That way we could override their pre-hook to provide better handling on special cases.

Eg: Dispatcher A defines several events, Dispatcher B extends it with an specialized pre-hook that stores on an external service each event (that way with a simple switch you can log certain events)

Eg: Dispatcher A defines several events, Dispatcher B extends it by providing additional event handlers, that way a certain part of the application can only emit Set<[A]> while another part can emit Set<[A, X]> (being X the new events/handlers provided by B)

That also allows complementary behaviours on certain environments (eg: additional logging step on test) etc

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

No branches or pull requests

1 participant