mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
StrictConcurrency/tests: ValueObservationRecorder is Sendable
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user