     let loginComplete: (CustomerInfo?, Bool, Error?) -> Void = { _, _, _ in }
     purchases.logIn("", completion: loginComplete)
     purchases.logIn("") { _, _, _ in }
-    if #available(iOS 13.0, tvOS 13.0, macOS 10.15, watchOS 6.0, *) {
-        Task.init {
-            let (_, _): (CustomerInfo, Bool) = try await purchases.logIn("")
-            let _: CustomerInfo = try await purchases.logOut()
-        }
-    }
 }
 
 private func checkPurchasesSupportAPI(purchases: Purchases) {
     #if os(iOS)
     purchases.showManageSubscriptions { _ in }
     purchases.beginRefundRequest(for: "") { _, _ in }
-    if #available(iOS 13.0, macOS 10.15, *) {
-        Task.init {
-            try await purchases.showManageSubscriptions()
-            let _: RefundRequestStatus = try await purchases.beginRefundRequest(for: "")
-        }
-    }
     #endif
 }
 

    purchases.purchase(package: pack) { _, _, _, _  in }
    purchases.syncPurchases { _, _ in }

    if #available(iOS 13.0, tvOS 13.0, macOS 10.15, watchOS 6.0, *) {
        Task.init {
            let (_, _, _): (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(product: skp)
            let (_, _, _): (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(package: pack)
            let _: CustomerInfo = try await purchases.syncPurchases()
            let _: CustomerInfo = try await purchases.restoreTransactions()
        }
    }

    let checkEligComplete: ([String: IntroEligibility]) -> Void = { _ in }
    purchases.checkTrialOrIntroductoryPriceEligibility([String](), completion: checkEligComplete)
    purchases.checkTrialOrIntroductoryPriceEligibility([String]()) { _ in }

    purchases.setCreative("")
    purchases.collectDeviceIdentifiers()
}

private func checkAsyncMethods(purchases: Purchases) async {
    let pack: Package! = nil

    do {
        let _: (CustomerInfo, Bool) = try await purchases.logIn("")
        let _: [String: IntroEligibility] = await purchases.checkTrialOrIntroductoryPriceEligibility([])
        let _: CustomerInfo = try await purchases.logOut()
        let _: Offerings = try await purchases.offerings()
        let _: SKPaymentDiscount = try await purchases.paymentDiscount(forProductDiscount: SKProductDiscount(),
                                                                       product: SKProduct())
        let _: [SKProduct] = await purchases.products([])
        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(package: pack)
        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(package: pack,
                                                                                         discount: SKPaymentDiscount())
        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(product: SKProduct())
        let _: (SKPaymentTransaction, CustomerInfo, Bool) = try await purchases.purchase(product: SKProduct(),
                                                                                         discount: SKPaymentDiscount())
        let _: CustomerInfo = try await purchases.customerInfo()
        let _: CustomerInfo = try await purchases.restoreTransactions()
        let _: CustomerInfo = try await purchases.syncPurchases()

        try await purchases.showManageSubscriptions()
        let _: RefundRequestStatus = try await purchases.beginRefundRequest(for: "")
    } catch {}
}
