You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
orreject
; should also acceptcallback
, which doesn't resolve the Promise.The text was updated successfully, but these errors were encountered: