Re: [compute-pressure] Get rid of the promise returned by observe (#258)

* The promise existed due to now removed permission integration
* If we remove promise now, we can always add later without breaking existing code as no one is depending on it
* If we support multiple sources in one observe call we have multiple options, none good
  * Resolve promise when all succeeds, but what to do it one or more fail? I assume devs will would want it to work for working sources
  * Return array of promises - very ugly and unexpected for developers
* UI wise, devs can use a timer and change UI if no events are delivered after a certain threshold
* We could also add an error event like Generic Sensors, but should look at what other similar APIs are doing today 

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/258#issuecomment-2033878292 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 3 April 2024 08:17:56 UTC