Closed Leeemons closed 1 year ago
Hello, why async methods do not have cancellation token? Example:
public static async Task<OdooResult<T>> CallAndDeserializeAsync<T>(OdooRequestModel request, CancellationToken cancellationToken) { _ = 1; try { return JsonConvert.DeserializeObject<OdooResult<T>>(await (await CallAsync(request)).Content.ReadAsStringAsync(cancellationToken)); } catch (Exception ex) { return OdooResult<T>.FailedResult(ex.ToString()); } }
Thanks for the suggestions. Just create a new release with CancellationToken. Please check new version 1.0.19
Hello, why async methods do not have cancellation token? Example: