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

Multithread example #235

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

Conversation

grelltrier
Copy link

I think this is a better example of multi-threading because the user can see the other thread changing the counter and the new thread not instantly finishing.
I don't know how to write a test for this though

@antoyo
Copy link
Owner

antoyo commented Sep 17, 2020

Thanks for this PR!

Could you please post this as a separate example so that we'll have one multithread example using the #[widget] attribute and one without?

Can you try to write the test by taking as example the multithread tests?
That is, using relm_observer_wait!(let Increment(value) = observer); a couple times and asserting the value.

@grelltrier
Copy link
Author

I can try but it will take some time. I am a bit overwhelmed with work right not :S

@micwoj92
Copy link

micwoj92 commented Jul 9, 2022

This branch has conflicts that must be resolved

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.

None yet

4 participants