Ratings1
Average rating3.5
We don't have a description for this book yet. You can help out the author by adding a description.
Reviews with the most likes.
Contains spoilers
It’s a half decent intro to Workers, ServiceWorks, and worker_threads.
That said, it relies pretty heavily on examples and is somewhat of a cook book for using the tech. It’s very much multihtreading WITH JAVASCRIPT. If you want an intro to multithreading in general, you’d be wise to rely on another resource.
That said, the book covers solid ground and has some good suggestions or topics I hadn’t previously been exposed to. Having good example code for how to get threading is nice, although I would’ve preferred to see an appendix with production-ready code. A large question I had going in, and still have leaving, is how do I execute TS code in a worker. I have to referenced the built JS file, but what’s the best way of doing that? Hard coding it in my source code?? Doubtful.
Anyway, read up on multithreading and then come here to see how you can apply it in JS.