StrictConcurrency/tests: ValueObservationRecorder is Sendable

This commit is contained in:
Gwendal Roué committed 2024-07-27 16:37:33 +02:00
1 parent c3dab1c2da
commit 2947b3d78b
1 file changed
+3 -1
@@ -4,7 +4,9 @@ import XCTest
// MARK: - ValueObservationRecorder
public class ValueObservationRecorder<Value> {
public class ValueObservationRecorder<Value>: @unchecked Sendable {
// @unchecked Sendable because mutable state is protected with `lock`.
private struct RecorderExpectation {
var expectation: XCTestExpectation
var remainingCount: Int? // nil for error expectation