Skip to content

Remove callback parameter #109

@JMPerez

Description

@JMPerez

The functions in the library support two ways of getting the result of the request back. One of them is through a promise that is returned in the call, and the other one is a callback parameter that gets called with the data and eventual error.

The support for Promise is quite widespread at the moment and additions to the language like async/await, which allows a concise syntax around Promises, make this option the preferred one.

The idea is to get through some of the packages and projects that depend on the library and analyze how frequently they use the callback function before getting rid of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions