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

Added a worker attribute to simplify interpreters in workers #13

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Aug 4, 2023

This MR makes bootstrapping any interpreter in a Worker a piece of cake:

<script type="micropython" worker="./worker.py"></script>

It allows a config attribute, as well as a version and an async one, preventing interpreters to land on both the main and the worker thread, simplifying by far the current indirect dance needed in PyScript Next too.

@WebReflection WebReflection merged commit 8384c52 into main Aug 7, 2023
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.

1 participant