Skip to content
Commit Detail

Commit d3dedcb

Author
Hood Chatham <roberthoodchatham@gmail.com> 2024-08-14 09:50:28 +0200
Parents
87e46bc
Tree
6a477da
Tidy up pyodide bundle API (#2504)

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`.

I also moved the state into a `PyodideBundleManager` class and removed the global variables.

Files changed

3 files changed~3 modified