You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following #300 the PressureSource enum has a single value; I understand the goal is to keep thermals as a possible future extension, but conversely, it would be unfortunate if such a future extension never sees the light and developers have to keep using observe("cpu") for ever for no good reason.
I wonder if this points toward a possible alternative structure for the API, where observe() would be applied to an object representing the source (e.g. cpu.observe()).
The text was updated successfully, but these errors were encountered:
We do want to expand this to other types in the future, and this is already shipping in Chrome and Edge, so that would be a major change. Also we are trying to avoid having too many objects in the platform.
Following #300 the
PressureSource
enum has a single value; I understand the goal is to keepthermals
as a possible future extension, but conversely, it would be unfortunate if such a future extension never sees the light and developers have to keep usingobserve("cpu")
for ever for no good reason.I wonder if this points toward a possible alternative structure for the API, where
observe()
would be applied to an object representing the source (e.g.cpu.observe()
).The text was updated successfully, but these errors were encountered: