feat - Shared Workers by bebraw · Pull Request #402 · andywer/threads.js
added 4 commits
October 5, 2021 14:26
bebraw
marked this pull request as draft
It looks like shared workers don't have a terminate method at all. The biggest open question is how to do a runtime check against worker. This is needed in order to adapt to the API.
I figured out `worker` code can contain a bit of branching to take shared workers into account. This eliminates both implementation and test code. Note that tests don't pass at the moment!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters