Skip to content

Commit

Permalink
Added missing @Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Oct 7, 2022
1 parent d4b5d98 commit fc37cd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Misc/Deprecations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ extension CustomerInfo {
self.quantity = 1
}

func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping () -> Void) {
func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping @Sendable () -> Void) {
completion()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal struct SK1StoreTransaction: StoreTransactionType {
let transactionIdentifier: String
let quantity: Int

func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping () -> Void) {
func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping @Sendable () -> Void) {
wrapper.finishTransaction(self.underlyingSK1Transaction)
completion()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal struct SK2StoreTransaction: StoreTransactionType {
let transactionIdentifier: String
let quantity: Int

func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping () -> Void) {
func finish(_ wrapper: PaymentQueueWrapperType, completion: @escaping @Sendable () -> Void) {
Async.call(with: completion) {
await self.underlyingSK2Transaction.finish()
}
Expand Down

0 comments on commit fc37cd8

Please sign in to comment.