Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to query the current qualityOfService from WorkerGlobalScope? #2

Open
hoch opened this issue Sep 7, 2023 · 0 comments
Open

How to query the current qualityOfService from WorkerGlobalScope? #2

hoch opened this issue Sep 7, 2023 · 0 comments

Comments

@hoch
Copy link

hoch commented Sep 7, 2023

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.

partial interface Worker : EventTarget {
  attribute readonly qualityOfService;
}

Perhaps something like this will be sensible, but IMO the implication of it needs to be discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant