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

Add in custom Poll for Signal #34

Open
Pauan opened this issue Jun 16, 2021 · 0 comments
Open

Add in custom Poll for Signal #34

Pauan opened this issue Jun 16, 2021 · 0 comments
Assignees

Comments

@Pauan
Copy link
Owner

Pauan commented Jun 16, 2021

Rather than a Signal returning Poll<Option<Self::Item>>, instead it should return a custom enum, like this:

enum SignalPoll<A> {
    Done(Option<A>),
    Changed(A),
    NotChanged,
}

This will make it possible to always poll the Signal a single time (rather than continuing to poll repeatedly).

@Pauan Pauan self-assigned this Jun 16, 2021
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