W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > May 2019

Re: [web-bluetooth] Use AbortController instead of stop method (#439)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Tue, 21 May 2019 18:00:58 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-494495785-1558461657-sysbot+gh@w3.org>
A brief scan of the specification shows three places where we could use an `AbortController` instead of a dedicated "stop" method,

* [`stopNotifications()`](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-stopnotifications)
* [`unwatchAdvertisements()`](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothdevice-unwatchadvertisements)
* [`BluetoothLEScan.stop()`](https://webbluetoothcg.github.io/web-bluetooth/scanning.html#dom-bluetoothlescan-stop)

The latter two have not been shipped in any implementation and so are reasonable candidates for updating. We will likely have to continue supporting `stopNotifications()`.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/439#issuecomment-494495785 using your GitHub account
Received on Tuesday, 21 May 2019 18:01:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 21 May 2019 18:01:01 UTC