mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +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
|
// MARK: - ValueObservationRecorder
|
||||||
|
|
||||||
public class ValueObservationRecorder<Value> {
|
public class ValueObservationRecorder<Value>: @unchecked Sendable {
|
||||||
|
// @unchecked Sendable because mutable state is protected with `lock`.
|
||||||
|
|
||||||
private struct RecorderExpectation {
|
private struct RecorderExpectation {
|
||||||
var expectation: XCTestExpectation
|
var expectation: XCTestExpectation
|
||||||
var remainingCount: Int? // nil for error expectation
|
var remainingCount: Int? // nil for error expectation
|
||||||
|
|||||||
Reference in new issue
Block a user