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

Updated Documentation for worker import URL #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttessarolo
Copy link

Changed:

  • README.md
  • /docs

--> new Worker(new URL("./foo/bar", import.meta.url))

Comment on lines +152 to +153
const auth = await spawn(new Worker(new URL("./workers/auth", import.meta.url)));
const hashed = await auth.hashPassword("Super secret password", "1234");

Choose a reason for hiding this comment

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

What's up with the semicolons?

Comment on lines +168 to +169
},
});

Choose a reason for hiding this comment

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

And the dangling comma?

Copy link
Author

Choose a reason for hiding this comment

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

those are my prettifyjs settings...

Choose a reason for hiding this comment

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

The rest of the code does not have semicolons, except for /docs/_includes/scripts/article.js
and src/index.ts that do and don't 😃

export { registerSerializer } from "./common"
export * from "./master/index"
export { expose } from "./worker/index"
export { DefaultSerializer, JsonSerializable, Serializer, SerializerImplementation } from "./serializers"
export { Transfer, TransferDescriptor } from "./transferable"
export { ExposedToThreadType as ExposedAs } from "./master/spawn";
export { QueuedTask } from "./master/pool";

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