An interesting idea! Kudos to everyone involved in the proposal.
Based on the proposed IDL, you can set the quality of service at the construction time:
let worker = new Worker('worker.js', { qualityOfService: 'high' });
But how can we query the current qualityOfService from the created worker instance? The QoS option is supposed to be a "hint" so this option might not be honored the browser implementation.
An interesting idea! Kudos to everyone involved in the proposal.
Based on the proposed IDL, you can set the quality of service at the construction time:
But how can we query the current
qualityOfService
from the created worker instance? The QoS option is supposed to be a "hint" so this option might not be honored the browser implementation.Perhaps something like this will be sensible, but IMO the implication of it needs to be discussion.