Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent calls to retrieveProductsInfo cause a crash #685

Open
min554357332 opened this issue Jan 9, 2023 · 1 comment
Open

Concurrent calls to retrieveProductsInfo cause a crash #685

min554357332 opened this issue Jan 9, 2023 · 1 comment

Comments

@min554357332
Copy link

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) } } }

@NikKovIos
Copy link

#675 to fix that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants