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

Resources can only wait for type erased events #59

Open
MrBurmark opened this issue May 11, 2021 · 1 comment
Open

Resources can only wait for type erased events #59

MrBurmark opened this issue May 11, 2021 · 1 comment

Comments

@MrBurmark
Copy link
Member

Currently you have to create a type erased event in order to have a resource wait_for it. Does it make sense to allow resources to wait_for their own event type to avoid this, maybe even wait_for another resource of their own type as syntactic sugar?

@trws
Copy link
Member

trws commented May 13, 2021

Yeah, that's a combination of problems, since wait_for should really take the event by value in which case it would just get auto-wrapped and we also don't have a specific version. Maybe we should rip off the bandaid and actually fix this set of issues, along with the getting a non-erased event problem, before they get too much usage?

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