- From: Christoph Guttandin via GitHub <sysbot+gh@w3.org>
- Date: Thu, 09 Mar 2023 12:03:26 +0000
- To: public-webtiming@w3.org
Maybe I'm missing something but wouldn't it be possible to build an optimistic UI by utilizing the promise returned when calling `update()`?
```js
$button.onclick = async () => {
const newVector = somehowComputeTheNewVector();
updateUI(newVector);
try {
await timingObject.update(newVector);
// all good
} catch (err) {
resetUI(err);
}
};
```
--
GitHub Notification of comment by chrisguttandin
Please view or discuss this issue at https://github.com/webtiming/timingobject/issues/20#issuecomment-1461911940 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 9 March 2023 12:03:28 UTC