Closed anpep closed 11 months ago
Dropped the Polish
tag as polishing is generally making things behave the same way but better. This is a major API change.
@anpep I have taken of this PR as per our agreement, and following conversations with Gustavo I have made some changes and pushed it into a branch I own. I will close this PR for now to reduce the traffic on the Pebble repo.
The
Requester
interface aims to replace the set ofraw
,do
,doSync
anddoAsync
internal methods from theClient
and abstract them out to an interface that can be plugged into theClient
and used by internal client API implementations and clients on external applications extending Pebble.I'd like to gather feedback on the
Requester
interface itself.Also, I'd appreciate some feedback on the handling of
maintenance
andwarningCount
/warningTimestamp
.Example usage for a synchronous API
Example usage for an asynchronous API