Closed
Description
Hi.
Considering the current approach used by many libraries and JavaScript APIs, I think it'd be beneficial for the library's methods to return a Promise instead of accepting a callback. Using Promises is more flexible and this approach gives developers more control about what happens when a request is performed.