RobotPajamas / SwiftyTeeth

A simple, lightweight library intended to take away some of the cruft and tediousness of using CoreBluetooth
Apache License 2.0
23 stars 8 forks source link

Clear queue on Disconnection #23

Closed sureshjoshi closed 4 years ago

sureshjoshi commented 6 years ago

Does this make sense? Or should there be some sort of "ensure connected" state, or maybe re-connect's should be injected?

Clearing the queue might also need to be the responsibility of the consumer of the API - as the queue will rapidly iterate through the queue knocking off connection failures