Skip to main content
Question

Cancelling tasks like Purchases.shared.customerInfo()

  • 12 October 2023
  • 1 reply
  • 21 views

Forum|alt.badge.img+4

Hi, 

I’m using async await and would like to cancel a network request when the app goes background. However, it seems that when calling `cancel()` on the Task for Purchases.shared.customerInfo for example, the network call doesn’t actually get cancelled. Is this by design?

1 reply

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 366 replies
  • October 16, 2023

Hi,

Cancelling requests isn’t something that’s currently supported, but I can send that to our sdk team as a feature request for you.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings