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

Replace postMessage from webworker with comlink callback #16

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

ianthomas23
Copy link
Member

@ianthomas23 ianthomas23 commented Jul 15, 2024

Currently using postMessage to send messages from the WebWorker to the main thread. This PR replaces this with the use of a comlink-compatible callback which allows us to add type annotations to the callback code.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Jul 15, 2024
@ianthomas23 ianthomas23 marked this pull request as ready for review July 15, 2024 12:00
@ianthomas23 ianthomas23 merged commit 1841226 into main Jul 16, 2024
10 checks passed
@ianthomas23 ianthomas23 deleted the comlink_callback branch July 16, 2024 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant