Hi *,
In the extension I develop, there is an heavy process which may freeze Firefox for several seconds. In order to avoid that, I’d like to make it work in a separate thread.
ChromeWorkers are said to be a non-standard feature (the behavior may change in the future), PromiseWorkers are apparently a derivative of ChromeWorkers. There is also Web Workers (can it be used in an addon?). Content workers run in the same thread…
At the moment, using a PromiseWorker is probably the way to go, but with the landing of Electrolysis in Firefox and the warning that it might change the addons behavior, I’m wondering what to do.
What is the best practice for now? and for the future?