Conversation
|
To answer your questions:
Since Boa supports enqueueing Rust futures, maybe we could kind of handwave this by enqueueing an async job that waits for messages from the workers? We could have some kind of
IMO starting with JSON is fine, but I think we kind of already support transferring objects using the
Huh? I don't think you need to worry about circular deps, right? Everything inside
That's a good question... We currently don't have a way to interrupt engine execution unfortunately. The best thing we have is If we want to support killing a worker thread, we might have to create something akin to a cancellation handle for the |
This is a Draft PR implementing the foundation for the Web Worker API (Worker class) in boa_runtime.
What this PR does
What's missing (and where I'd love some guidance )
This is intentionally a Draft — I wanted to get the architecture right before going further. A few things I'm unsure about:
Happy to iterate on any of this based on your feedback. Thanks for your time! 😊