HealthKit icon indicating copy to clipboard operation
HealthKit copied to clipboard

Could the API be in terms of promises rather than callbacks?

Open kingsfleet opened this issue 11 years ago • 2 comments

Since this is a API being written from scratch could it be written in terms of promises which are much easier to code with.

It appears to be available in the browser of ios8 http://caniuse.com/#feat=promises

kingsfleet avatar Sep 29 '14 09:09 kingsfleet

Or you could just add a promise library

josephfinlayson avatar Jan 17 '15 08:01 josephfinlayson

Safari 8 now implements the HTML 5 promise proposal. Should be safe to use.

kingsfleet avatar Jan 17 '15 20:01 kingsfleet