Skip to content

Add Async support along with cancellation token #43

@saivineeth100

Description

@saivineeth100

Make Kite requests Async and cancellable as it improves responsiveness
Ex :

public async Task<dynamic> Request(...,, CancellationToken token = default)
{
   //....
   string responseBody = await  response.Content.ReadAsStringAsync(token);
   //....
}

this change will completely disrupt the current API, we have a few options:

  • we could introduce a new AsyncKiteClient,
  • apply method overloading in the existing class
  • append the suffix "Async" and add new methods to the existing class.

Metadata

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