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

I don't have strong opinion abort AbortController vs stop() either.

maybe a rule of thumb:
if something returns a promise and may take a wile, then a abortSignal could be an option
if you do however get a instance of something then you may have the opportunity to stop it

could be like comparing XMLHttpRequest and fetch
with XMLHttpRequest you get a instance back immediately and can abort something with `xhr.abort()` that's all fine but with fetch you have no other option than to use AbortSignal

-- 
GitHub Notification of comment by jimmywarting
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/439#issuecomment-673510754 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 13 August 2020 14:26:15 UTC