|
@@ -51,6 +51,7 @@ class ProductsInfoController: NSObject {
|
|
// As we can have multiple inflight requests, we store them in a dictionary by product ids
|
|
// As we can have multiple inflight requests, we store them in a dictionary by product ids
|
|
private var inflightRequests: [Set<String>: InAppProductQuery] = [:]
|
|
private var inflightRequests: [Set<String>: InAppProductQuery] = [:]
|
|
|
|
|
|
|
|
+ @discardableResult
|
|
func retrieveProductsInfo(_ productIds: Set<String>, completion: @escaping (RetrieveResults) -> Void) -> InAppProductRequest {
|
|
func retrieveProductsInfo(_ productIds: Set<String>, completion: @escaping (RetrieveResults) -> Void) -> InAppProductRequest {
|
|
|
|
|
|
if inflightRequests[productIds] == nil {
|
|
if inflightRequests[productIds] == nil {
|