- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Mon, 05 Aug 2019 17:24:14 +0000
- To: public-web-nfc@w3.org
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