Worker Threads in JavaScript?

Does anyone know if it is possible to simulate worker threads in JavaScript. I need a method of constantly polling a particular resource and dispatching events based on conditions in that resource.

Currently I am thinking that I will have to have methods triggered off timers. Is this acceptable?

Picture of me smiling.

Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.

RSS Github Medium