[web-bluetooth] Pull Request: Allow UAs to reject concurrent use of 6 functions.

jyasskin has just submitted a new pull request for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Allow UAs to reject concurrent use of 6 functions. ==
Preview at 
https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/jyasskin/web-bluetooth-1/in-progress-error/index.bs#dom-bluetoothremotegattserver-connect.

* GattServer.connect()
* Characteristic.readValue()
* Characteristic.writeValue()
* Characteristic.startNotifications()
* Descriptor.readValue()
* Descriptor.writeValue()

This is uncomfortable because while serializing within a single realm
will reduce the frequency of these NetworkErrors, separate realms and
possibly other applications entirely can also cause these errors, and
the only way to recover is to retry and hope it doesn't happen again.

We're discussing the constraints imposed by the OS and the long-term
plan in #188. Any change should reduce the number of exceptions and so
be backward-compatible.

See https://github.com/WebBluetoothCG/web-bluetooth/pull/316

Received on Thursday, 20 October 2016 22:42:10 UTC