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

Add support for sending in-progress messages to main thread #18

Closed
robertaboukhalil opened this issue Jun 1, 2020 · 1 comment · Fixed by #19
Closed

Add support for sending in-progress messages to main thread #18

robertaboukhalil opened this issue Jun 1, 2020 · 1 comment · Fixed by #19
Assignees
Labels
enhancement New feature or request in-progress In progress

Comments

@robertaboukhalil
Copy link
Member

Currently, when using Aioli to send a message to a WebWorker, the WebWorker can only return data once before the Promise is resolved. However, there are many cases in which it would be useful for the WebWorker to regularly send status updates (e.g. send updates during a long computation) and only resolve the Promise once the last message is sent.

Implementation Sketch: Support sending 3 types of messages from WebWorker to main thread. Currently accept: resolve or reject; should also accept callback, which doesn't resolve the Promise.

@robertaboukhalil robertaboukhalil self-assigned this Jun 1, 2020
@robertaboukhalil robertaboukhalil added enhancement New feature or request in-progress In progress labels Jun 1, 2020
@robertaboukhalil
Copy link
Member Author

In progress: branch issue-18-support-in-progress-messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in-progress In progress
Development

Successfully merging a pull request may close this issue.

1 participant