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

Consider adding a previous priority event property for priority change events #21

Closed
shaseley opened this issue Jan 29, 2021 · 0 comments · Fixed by #32
Closed

Consider adding a previous priority event property for priority change events #21

shaseley opened this issue Jan 29, 2021 · 0 comments · Fixed by #32

Comments

@shaseley
Copy link
Collaborator

This seems like it would be useful information, and isn't currently implemented. For example, something like:

let controller = new TaskController();  // user-visible priority
controller.signal.addEventListener('prioritychange', (e) => {
  console.log(e.previousPriority);  // user-visible
  console.log(e.currentTarget.priority) // background
});
controller.setPriority('background');
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

Successfully merging a pull request may close this issue.

1 participant