Skip to content

Updated Documentation for worker import URL#424

Open
ttessarolo wants to merge 1 commit intoandywer:masterfrom
ttessarolo:master
Open

Updated Documentation for worker import URL#424
ttessarolo wants to merge 1 commit intoandywer:masterfrom
ttessarolo:master

Conversation

@ttessarolo
Copy link
Copy Markdown

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");
Copy link
Copy Markdown

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
},
});
Copy link
Copy Markdown

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

Copy link
Copy Markdown

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