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 multithreading example #2087

Closed
wants to merge 8 commits into from
Closed

Conversation

SpanishPear
Copy link
Contributor

@SpanishPear SpanishPear commented Sep 26, 2021

Description

Introduce a functioning mulithreading with web weorkers demo.

Fixes #2070

Checklist

  • I have run cargo make pr-flow
  • I have reviewed my own code

@mc1098 mc1098 added the A-examples Area: The examples label Sep 26, 2021
@SpanishPear SpanishPear changed the title [WIP] Add multithreading example Add multithreading example Sep 26, 2021
@SpanishPear SpanishPear marked this pull request as ready for review September 26, 2021 11:14
@SpanishPear
Copy link
Contributor Author

SpanishPear commented Sep 26, 2021

I'm not sure if there's any more config that's needed, I did a grep for the OG multi_thread example and added references to this new example in the same spots.

Let me know!

Copy link
Contributor

@mc1098 mc1098 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome stuff 😍

The "Thanks to" section is a nice way to give a shout out to @insou22, so I appreciate that ❤️.

Most of my comments below is just me being picky for the most part :)

examples/multi_thread/README.md Show resolved Hide resolved
examples/web_worker_fib/README.md Outdated Show resolved Hide resolved
examples/web_worker_fib/static/index.html Outdated Show resolved Hide resolved
examples/web_worker_fib/src/lib.rs Show resolved Hide resolved
examples/web_worker_fib/src/app.rs Show resolved Hide resolved
examples/web_worker_fib/src/app.rs Show resolved Hide resolved
examples/web_worker_fib/src/app.rs Outdated Show resolved Hide resolved
examples/web_worker_fib/src/app.rs Outdated Show resolved Hide resolved
examples/web_worker_fib/src/app.rs Outdated Show resolved Hide resolved
examples/web_worker_fib/Cargo.toml Show resolved Hide resolved
@SpanishPear
Copy link
Contributor Author

SpanishPear commented Sep 26, 2021 via email

examples/web_worker_fib/build.sh Outdated Show resolved Hide resolved
examples/web_worker_fib/serve.sh Outdated Show resolved Hide resolved
@SpanishPear
Copy link
Contributor Author

SpanishPear commented Oct 13, 2021

Aware I've left this for a while - will get a chance to polish it this weekend

EDIT: That didn't end up happening, but I'll get to it eventually

@voidpumpkin voidpumpkin added the S-waiting-on-author Status: awaiting action from the author of the issue/PR label Nov 11, 2021
@voidpumpkin voidpumpkin removed the S-waiting-on-author Status: awaiting action from the author of the issue/PR label Nov 19, 2021
Copy link
Member

@voidpumpkin voidpumpkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SpanishPear
Copy link
Contributor Author

SpanishPear commented Nov 19, 2021

... I think i did a whoopsy and force-undid my work, but have fixed it. Can someone re-open this PR?

@voidpumpkin voidpumpkin reopened this Nov 19, 2021
Copy link
Member

@ranile ranile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good example to have until trunk adds support for workers.

Can you fix the compile errors here?

@voidpumpkin voidpumpkin added the S-waiting-on-author Status: awaiting action from the author of the issue/PR label Nov 21, 2021
@voidpumpkin voidpumpkin mentioned this pull request Nov 21, 2021
3 tasks
@mc1098 mc1098 closed this in #2171 Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-examples Area: The examples S-waiting-on-author Status: awaiting action from the author of the issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inadequate multi-thread example
5 participants