Skip to content

Multithread example - #235

Open
grelltrier wants to merge 2 commits into
antoyo:masterfrom
grelltrier:multithread-example
Open

Multithread example#235
grelltrier wants to merge 2 commits into
antoyo:masterfrom
grelltrier:multithread-example

Conversation

@grelltrier

Copy link
Copy Markdown

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

antoyo commented Sep 17, 2020

Copy link
Copy Markdown
Owner

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
Copy Markdown
Author

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

@micwoj92

micwoj92 commented Jul 9, 2022

Copy link
Copy Markdown

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.

4 participants