Skip to content

Concurrent calls to retrieveProductsInfo cause a crash #685

Open

Description

@min554357332

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

Activity

  1. NikKovIos commented on Jan 16, 2023

    @NikKovIos

    #675 to fix that

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions