Skip to content

promisify #56

Open
Open
@nashibao

Description

  • return promise if callback function isn't specified.
const {data} = await client.send(path, query, options);
...
  • auto cancel option with same parameters.
client.send(path, query, {autoCancel: true}, (err, data) => {
  //  if same path request is already called until this async callback.
  assert(err.message == 'AutoCancelled');
});

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions