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

feat: Add new powerMonitor synchronous API #17144

Merged
merged 1 commit into from
Feb 27, 2019
Merged

Conversation

nitsakh
Copy link
Contributor

@nitsakh nitsakh commented Feb 26, 2019

powerMonitor.querySystemIdleState and powerMonitor.querySystemIdleTime had async backing APIs in chromium (https://chromium-review.googlesource.com/c/chromium/src/+/1379183). However, that has changed in ch73. So, this PR deprecates the old async APIs and adds new sync APIs.
Refer this comment.

Description of Change

Checklist

Release Notes

Notes: Replaced powerMonitor querySystemIdleState and querySystemIdleTime with synchronous APIs.

@nitsakh nitsakh requested review from a team February 26, 2019 20:49
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 26, 2019
`powerMonitor.querySystemIdleState` and `powerMonitor.querySystemIdleTime` had async backing APIs in chromium (https://chromium-review.googlesource.com/c/chromium/src/+/1379183). However, that has changed in ch73. So, this PR deprecates the old async APIs and adds new sync APIs.
@nitsakh nitsakh force-pushed the power-monitor-deprecation branch from 56a127c to a2f6475 Compare February 26, 2019 20:51
@jkleinsc jkleinsc removed the new-pr 🌱 PR opened in the last 24 hours label Feb 27, 2019
@jkleinsc jkleinsc merged commit bfa07ec into master Feb 27, 2019
@release-clerk
Copy link

release-clerk bot commented Feb 27, 2019

Release Notes Persisted

Replaced powerMonitor querySystemIdleState and querySystemIdleTime with synchronous APIs.

@jkleinsc jkleinsc deleted the power-monitor-deprecation branch February 27, 2019 20:54
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 this pull request may close these issues.

4 participants