SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

Concurrent calls to retrieveProductsInfo cause a crash

Open min554357332 opened this issue 1 year ago • 1 comments

Bug Report

Concurrent calls to retrieveProductsInfo cause a crash

Platform Information

  • OS: ALL
  • Purchase Type: ALL
  • Environment: ALL
  • SwiftyStoreKit version: 0.16.1

A spinlock should be added to the inflightRequests property on write?

func testAppleStoreKit() { let productIds :Set<String> = ["productId"] DispatchQueue.concurrentPerform(iterations: 1_000) { idx in SwiftyStoreKit.retrieveProductsInfo(productIds) { results in print(idx) } } }

min554357332 avatar Jan 09 '23 08:01 min554357332