FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

POC - Handle when Worker is unsupported by Conrad2134 · Pull Request #20 · developit/workerize · GitHub

POC - Handle when Worker is unsupported - #20

Open
Conrad2134 wants to merge 1 commit into
developit:masterfrom
Conrad2134:master
Open

POC - Handle when Worker is unsupported#20
Conrad2134 wants to merge 1 commit into
developit:masterfrom
Conrad2134:master

Conversation

Copy link
Copy Markdown

This is to show that falling back to the main thread when Workers aren't supported works. There's a lot of TODOs because I wasn't sure the best way to go about a couple of things.

Bundles:

878 B: workerize.js
877 B: workerize.m.js
941 B: workerize.umd.js

Comment thread src/index.js
// TODO: Is this the full API? Do we need to add anything else?
worker = {
kill() {},
terminate() {},

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should we implement these methods to remove the proxied methods on the worker? Or fine as no-op?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

TBH I'm tempted to not even emulate these since they do nothing. Doing an existence-test for worker.terminate would be a decent way to know if the worker got inlined or not.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL