Skip to content

Commit

Permalink
Add generics to OrderHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
FabrizioBrancati committed May 8, 2024
1 parent c1d50ce commit c9bf619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/QueuerTests/ConcurrentOperationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ final class ConcurrentOperationTests: XCTestCase {
if CIHelper.isNotRunningOnCI() {
let queue = Queuer(name: "ConcurrentOperationTestChainedRetry")
let testExpectation = expectation(description: "Chained Retry")
let order = OrderHelper()
let order = OrderHelper<Int>()

let concurrentOperation1 = ConcurrentOperation { operation in
Task {
Expand Down
6 changes: 3 additions & 3 deletions Tests/QueuerTests/Helpers/OrderHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@

import Foundation

actor OrderHelper {
var order: [Int] = []
actor OrderHelper<Element: Equatable> {
var order: [Element] = []

func append(_ element: Int) {
func append(_ element: Element) {
order.append(element)
}
}

0 comments on commit c9bf619

Please sign in to comment.