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

Sketchy example,

```javascript
const reader = new NFCReader();
reader.onreading = e => {

};
const controller = new AbortController();
reader.start({ signal: controller.signal });

// Later...
controller.abort();
```

Pros:

* Consistency.
* Ability to cancel multiple operations with a single call.

Cons:

* Verbosity.

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

Received on Monday, 5 August 2019 17:24:16 UTC