Re: [web-nfc] Consider using AbortController rather than a stop() method (#225)

One thing about `AbortController` that on a conceptional level bothers me is aborts leading to [`AbortError`](https://heycam.github.io/webidl/#aborterror)s (i.e., a "bad" thing) that you should catch. In most cases like here, aborts are not "bad", you just stop something, as you're done. Example from Wake Lock:

```js
WakeLock.request(type, {signal})    
.catch(err => {
  console.error(err.name, err.message);
});
```

-- 
GitHub Notification of comment by tomayac
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/225#issuecomment-518719869 using your GitHub account

Received on Tuesday, 6 August 2019 15:27:09 UTC