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

multiple subscribers #21

Open
faassen opened this issue Jan 6, 2015 · 5 comments
Open

multiple subscribers #21

faassen opened this issue Jan 6, 2015 · 5 comments

Comments

@faassen
Copy link
Member

faassen commented Jan 6, 2015

Come up with a way so that multiple functions can be called when a dispatch function is called. This allows things like an event system.

@faassen
Copy link
Member Author

faassen commented Jan 7, 2015

Possible features:

  • multiple generic functions that should all fire, instead of just one.
  • specific subscribers using event system.
  • topological sort so that subscribers can be made to fire after another (define order if two subscribers fire, but those subscribers may also fire independently)

Implementation notes:

  • if predicate key is the same, add it to a list of functions to fire for that predicate key.
  • use all functionality to make sure all subscribers fire.

@andrss
Copy link

andrss commented Jan 15, 2015

Martijn,
How high is this issue on your priorities list?
Do you see it happening in the nearest future or we should not hold our breath?

@faassen
Copy link
Member Author

faassen commented Jan 19, 2015

(sorry, I got sick which delayed my response)

I don't think it's going to happen in the very near future as it's not needed for the application code I'm working on. I think for the moment you're better off using an external event system with Morepath.

I am going to try to find some time to work on it in, say, the next half year, though. (in the context of Reg)

@andrss
Copy link

andrss commented Jan 19, 2015

Thank you for reply, Martijn. Get well soon!

@faassen
Copy link
Member Author

faassen commented Mar 8, 2016

Clearly I haven't managed to work on it yet. :)

@kagesenshi kagesenshi mentioned this issue Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants