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

Make a constructor that takes a threading.Event object #11

Open
penguinland opened this issue Mar 30, 2018 · 0 comments
Open

Make a constructor that takes a threading.Event object #11

penguinland opened this issue Mar 30, 2018 · 0 comments

Comments

@penguinland
Copy link
Contributor

For this library to be most useful to other people, there should be a way of turning a threading.Event object into a multevents Event object. That way, you can start with several threading.Event objects created by other 3rd party code, and have a way of making an AnyEvent out of them.

However, it's unclear to me exactly how this should work. The original threading.Event object will be settable and clearable, which would set and clear the wrapper object as well. Should the wrapper object be settable/clearable, too? Part of me says "yes, then you can use the wrapper everywhere and ignore the original object." Part of me says "no, this is just another type of combo event, and we'd need to go out of our way to avoid infinite loops when the wrapper sets the inner object which sets the wrapper."

This should probably be done after #4 is finished. That issue will likely pave the way for this one.

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

1 participant