+
Skip to content

Return a Promise instead of accepting callbacks #233

Closed
@AurelioDeRosa

Description

@AurelioDeRosa

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载