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

Relaxed Signals #57

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Relaxed Signals #57

wants to merge 6 commits into from

Conversation

creynders
Copy link

I encountered a situation in which I needed to be able to add a listener to a signal after it having been dispatched already. In other words, let the listening object be indifferent to whether the signal already was dispatched or not.

[removed rest of comment due to being irrelevant after latest commits]

@creynders
Copy link
Author

I created relaxed signals extending all the corresponding original signals and put them in a subpackage "relaxed".
I tried going the decorator road, which would've been cleaner, but became unnecessary complex due to the inheritance chain of the classes and interfaces of the originals.
I also added tests for all of them, but I must confess I'm no test meister, so it could be they're incomplete/useless/idiotic ...

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

Successfully merging this pull request may close these issues.

1 participant