Skip to content

Tidy up pyodide bundle API #2504

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

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Tidy up pyodide bundle API #2504

merged 1 commit into from
Aug 14, 2024

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Aug 9, 2024

This adds a Mutex around the bundleReaders map and makes getPyodideBundle return a Maybe rather than asserting that the bundle is defined. This means we can get rid of hasPyodideBundle in favor of checking whether getPyodideBundle returns none.

@hoodmane hoodmane requested review from dom96 and garrettgu10 August 9, 2024 13:34
@hoodmane hoodmane requested review from a team as code owners August 9, 2024 13:34
@hoodmane hoodmane force-pushed the hoodmane/tidy-pyodide-bundle-api branch from dcefafc to 6bb9c80 Compare August 9, 2024 13:43
@hoodmane hoodmane force-pushed the hoodmane/tidy-pyodide-bundle-api branch 5 times, most recently from ab2d9f2 to 163e76b Compare August 13, 2024 15:54
This adds a Mutex around the bundleReaders map and makes `getPyodideBundle`
return a Maybe<bundle> rather than asserting that the bundle is defined.
This means we can get rid of `hasPyodideBundle` in favor of checking whether
`getPyodideBundle` returns `none`.
@hoodmane hoodmane force-pushed the hoodmane/tidy-pyodide-bundle-api branch from 163e76b to e4d0258 Compare August 13, 2024 15:58
@hoodmane hoodmane merged commit d3dedcb into main Aug 14, 2024
9 checks passed
@hoodmane hoodmane deleted the hoodmane/tidy-pyodide-bundle-api branch August 14, 2024 07:50
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.

3 participants