Skip to content

Conversation

@UziTech
Copy link
Member

@UziTech UziTech commented Mar 1, 2019

Description

Add examples of how to run marked in a worker on node and in a browser.
https://docs-4nj255ohp.now.sh/#/USING_ADVANCED.md#workers

fixes #1184

Contributor

  • no tests required for this PR.

Committer

In most cases, this should be a different person than the contributor.

  • Draft GitHub release notes have been updated.
  • CI is green (no forced merge required).
  • Merge PR

@UziTech UziTech added the category: docs Documentation changes label Mar 1, 2019
@styfle
Copy link
Member

styfle commented Mar 2, 2019

There was one bug in the example that was mixing function keyword and arrow functions.

I think we should just use arrow functions for workers because its an advanced feature and so we can assume the reader understands ES6.

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

💚

@UziTech
Copy link
Member Author

UziTech commented Mar 2, 2019

Nice catch

@UziTech UziTech changed the title add docs for workers [WIP] add docs for workers Mar 7, 2019
@UziTech
Copy link
Member Author

UziTech commented Mar 7, 2019

wait to merge this until after worker_threads in node are stable

@UziTech UziTech changed the title [WIP] add docs for workers add docs for workers Apr 26, 2019
@UziTech
Copy link
Member Author

UziTech commented Apr 26, 2019

I added notes about Worker Threads being experimental and Web Workers sending objects on postMessage instead of just the string.

https://docs-4nj255ohp.now.sh/#/USING_ADVANCED.md#workers

I think this should be good to merge.

@UziTech UziTech requested review from davisjam and joshbruce May 3, 2019 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question: Markdown, storage and security

3 participants