Skip to content

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";

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants